AWS SDK for C++  1.9.71
AWS SDK for C++
DeleteTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DeleteTags"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline DeleteTagsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
78  inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
79 
84  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
85 
90  inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
91 
96  inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
97 
102  inline DeleteTagsRequest& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
103 
108  inline DeleteTagsRequest& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
109 
114  inline DeleteTagsRequest& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
115 
120  inline DeleteTagsRequest& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
121 
126  inline DeleteTagsRequest& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
127 
128 
138  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
139 
149  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 
160  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
161 
171  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
172 
182  inline DeleteTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
183 
193  inline DeleteTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
194 
204  inline DeleteTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
205 
215  inline DeleteTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
216 
217  private:
218 
219  bool m_dryRun;
220  bool m_dryRunHasBeenSet;
221 
222  Aws::Vector<Aws::String> m_resources;
223  bool m_resourcesHasBeenSet;
224 
225  Aws::Vector<Tag> m_tags;
226  bool m_tagsHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace EC2
231 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteTagsRequest::AddResources
DeleteTagsRequest & AddResources(Aws::String &&value)
Definition: DeleteTagsRequest.h:120
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::DeleteTagsRequest::WithTags
DeleteTagsRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: DeleteTagsRequest.h:182
Aws::EC2::Model::DeleteTagsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteTagsRequest::SetResources
void SetResources(const Aws::Vector< Aws::String > &value)
Definition: DeleteTagsRequest.h:90
Aws::EC2::Model::DeleteTagsRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: DeleteTagsRequest.h:171
Aws::EC2::Model::DeleteTagsRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: DeleteTagsRequest.h:160
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteTagsRequest::WithDryRun
DeleteTagsRequest & WithDryRun(bool value)
Definition: DeleteTagsRequest.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Tag.h
Aws::EC2::Model::DeleteTagsRequest::GetResources
const Aws::Vector< Aws::String > & GetResources() const
Definition: DeleteTagsRequest.h:78
Aws::EC2::Model::DeleteTagsRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteTagsRequest.h:47
Aws::EC2::Model::DeleteTagsRequest
Definition: DeleteTagsRequest.h:24
Aws::EC2::Model::DeleteTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteTagsRequest::AddTags
DeleteTagsRequest & AddTags(Tag &&value)
Definition: DeleteTagsRequest.h:215
EC2Request.h
Aws::EC2::Model::DeleteTagsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: DeleteTagsRequest.h:149
AWSString.h
Aws::EC2::Model::DeleteTagsRequest::AddTags
DeleteTagsRequest & AddTags(const Tag &value)
Definition: DeleteTagsRequest.h:204
Aws::EC2::Model::DeleteTagsRequest::WithResources
DeleteTagsRequest & WithResources(Aws::Vector< Aws::String > &&value)
Definition: DeleteTagsRequest.h:108
Aws::EC2::Model::DeleteTagsRequest::AddResources
DeleteTagsRequest & AddResources(const Aws::String &value)
Definition: DeleteTagsRequest.h:114
Aws::EC2::Model::DeleteTagsRequest::SetResources
void SetResources(Aws::Vector< Aws::String > &&value)
Definition: DeleteTagsRequest.h:96
Aws::EC2::Model::DeleteTagsRequest::WithResources
DeleteTagsRequest & WithResources(const Aws::Vector< Aws::String > &value)
Definition: DeleteTagsRequest.h:102
Aws::EC2::Model::DeleteTagsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteTagsRequest.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteTagsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteTagsRequest.h:63
Aws::EC2::Model::DeleteTagsRequest::DeleteTagsRequest
DeleteTagsRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DeleteTagsRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: DeleteTagsRequest.h:138
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DeleteTagsRequest::ResourcesHasBeenSet
bool ResourcesHasBeenSet() const
Definition: DeleteTagsRequest.h:84
EC2_EXPORTS.h
Aws::EC2::Model::DeleteTagsRequest::AddResources
DeleteTagsRequest & AddResources(const char *value)
Definition: DeleteTagsRequest.h:126
Aws::EC2::Model::DeleteTagsRequest::WithTags
DeleteTagsRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: DeleteTagsRequest.h:193
Aws::EC2::Model::DeleteTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTagsRequest.h:32