AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateTagsForResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticBeanstalk
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 "UpdateTagsForResource"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
45  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
46 
51  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
52 
57  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
58 
63  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
64 
69  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
70 
75  inline UpdateTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
76 
81  inline UpdateTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
82 
87  inline UpdateTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
88 
89 
95  inline const Aws::Vector<Tag>& GetTagsToAdd() const{ return m_tagsToAdd; }
96 
102  inline bool TagsToAddHasBeenSet() const { return m_tagsToAddHasBeenSet; }
103 
109  inline void SetTagsToAdd(const Aws::Vector<Tag>& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = value; }
110 
116  inline void SetTagsToAdd(Aws::Vector<Tag>&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = std::move(value); }
117 
123  inline UpdateTagsForResourceRequest& WithTagsToAdd(const Aws::Vector<Tag>& value) { SetTagsToAdd(value); return *this;}
124 
130  inline UpdateTagsForResourceRequest& WithTagsToAdd(Aws::Vector<Tag>&& value) { SetTagsToAdd(std::move(value)); return *this;}
131 
137  inline UpdateTagsForResourceRequest& AddTagsToAdd(const Tag& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(value); return *this; }
138 
144  inline UpdateTagsForResourceRequest& AddTagsToAdd(Tag&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(std::move(value)); return *this; }
145 
146 
152  inline const Aws::Vector<Aws::String>& GetTagsToRemove() const{ return m_tagsToRemove; }
153 
159  inline bool TagsToRemoveHasBeenSet() const { return m_tagsToRemoveHasBeenSet; }
160 
166  inline void SetTagsToRemove(const Aws::Vector<Aws::String>& value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove = value; }
167 
173  inline void SetTagsToRemove(Aws::Vector<Aws::String>&& value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove = std::move(value); }
174 
180  inline UpdateTagsForResourceRequest& WithTagsToRemove(const Aws::Vector<Aws::String>& value) { SetTagsToRemove(value); return *this;}
181 
187  inline UpdateTagsForResourceRequest& WithTagsToRemove(Aws::Vector<Aws::String>&& value) { SetTagsToRemove(std::move(value)); return *this;}
188 
194  inline UpdateTagsForResourceRequest& AddTagsToRemove(const Aws::String& value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove.push_back(value); return *this; }
195 
201  inline UpdateTagsForResourceRequest& AddTagsToRemove(Aws::String&& value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove.push_back(std::move(value)); return *this; }
202 
208  inline UpdateTagsForResourceRequest& AddTagsToRemove(const char* value) { m_tagsToRemoveHasBeenSet = true; m_tagsToRemove.push_back(value); return *this; }
209 
210  private:
211 
212  Aws::String m_resourceArn;
213  bool m_resourceArnHasBeenSet;
214 
215  Aws::Vector<Tag> m_tagsToAdd;
216  bool m_tagsToAddHasBeenSet;
217 
218  Aws::Vector<Aws::String> m_tagsToRemove;
219  bool m_tagsToRemoveHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace ElasticBeanstalk
224 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::GetTagsToAdd
const Aws::Vector< Tag > & GetTagsToAdd() const
Definition: UpdateTagsForResourceRequest.h:95
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::WithTagsToAdd
UpdateTagsForResourceRequest & WithTagsToAdd(const Aws::Vector< Tag > &value)
Definition: UpdateTagsForResourceRequest.h:123
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::WithResourceArn
UpdateTagsForResourceRequest & WithResourceArn(const Aws::String &value)
Definition: UpdateTagsForResourceRequest.h:75
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::WithTagsToRemove
UpdateTagsForResourceRequest & WithTagsToRemove(const Aws::Vector< Aws::String > &value)
Definition: UpdateTagsForResourceRequest.h:180
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::WithResourceArn
UpdateTagsForResourceRequest & WithResourceArn(Aws::String &&value)
Definition: UpdateTagsForResourceRequest.h:81
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::SetTagsToAdd
void SetTagsToAdd(const Aws::Vector< Tag > &value)
Definition: UpdateTagsForResourceRequest.h:109
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: UpdateTagsForResourceRequest.h:45
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::AddTagsToAdd
UpdateTagsForResourceRequest & AddTagsToAdd(const Tag &value)
Definition: UpdateTagsForResourceRequest.h:137
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Tag.h
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: UpdateTagsForResourceRequest.h:57
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: UpdateTagsForResourceRequest.h:69
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest
Definition: UpdateTagsForResourceRequest.h:24
ElasticBeanstalkRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::SetTagsToRemove
void SetTagsToRemove(Aws::Vector< Aws::String > &&value)
Definition: UpdateTagsForResourceRequest.h:173
AWSVector.h
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::WithResourceArn
UpdateTagsForResourceRequest & WithResourceArn(const char *value)
Definition: UpdateTagsForResourceRequest.h:87
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::AddTagsToAdd
UpdateTagsForResourceRequest & AddTagsToAdd(Tag &&value)
Definition: UpdateTagsForResourceRequest.h:144
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::AddTagsToRemove
UpdateTagsForResourceRequest & AddTagsToRemove(const char *value)
Definition: UpdateTagsForResourceRequest.h:208
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::WithTagsToAdd
UpdateTagsForResourceRequest & WithTagsToAdd(Aws::Vector< Tag > &&value)
Definition: UpdateTagsForResourceRequest.h:130
AWSString.h
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::AddTagsToRemove
UpdateTagsForResourceRequest & AddTagsToRemove(Aws::String &&value)
Definition: UpdateTagsForResourceRequest.h:201
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: UpdateTagsForResourceRequest.h:63
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::GetTagsToRemove
const Aws::Vector< Aws::String > & GetTagsToRemove() const
Definition: UpdateTagsForResourceRequest.h:152
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::WithTagsToRemove
UpdateTagsForResourceRequest & WithTagsToRemove(Aws::Vector< Aws::String > &&value)
Definition: UpdateTagsForResourceRequest.h:187
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::TagsToRemoveHasBeenSet
bool TagsToRemoveHasBeenSet() const
Definition: UpdateTagsForResourceRequest.h:159
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::SetTagsToAdd
void SetTagsToAdd(Aws::Vector< Tag > &&value)
Definition: UpdateTagsForResourceRequest.h:116
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::SetTagsToRemove
void SetTagsToRemove(const Aws::Vector< Aws::String > &value)
Definition: UpdateTagsForResourceRequest.h:166
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTagsForResourceRequest.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::ElasticBeanstalkRequest
Definition: ElasticBeanstalkRequest.h:17
Aws::ElasticBeanstalk::Model::Tag
Definition: Tag.h:33
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::AddTagsToRemove
UpdateTagsForResourceRequest & AddTagsToRemove(const Aws::String &value)
Definition: UpdateTagsForResourceRequest.h:194
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::TagsToAddHasBeenSet
bool TagsToAddHasBeenSet() const
Definition: UpdateTagsForResourceRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: UpdateTagsForResourceRequest.h:51
Aws::ElasticBeanstalk::Model::UpdateTagsForResourceRequest::UpdateTagsForResourceRequest
UpdateTagsForResourceRequest()