AWS SDK for C++  1.9.131
AWS SDK for C++
TagResourcesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ResourceGroupsTaggingAPI
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 "TagResources"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
47  inline const Aws::Vector<Aws::String>& GetResourceARNList() const{ return m_resourceARNList; }
48 
57  inline bool ResourceARNListHasBeenSet() const { return m_resourceARNListHasBeenSet; }
58 
67  inline void SetResourceARNList(const Aws::Vector<Aws::String>& value) { m_resourceARNListHasBeenSet = true; m_resourceARNList = value; }
68 
77  inline void SetResourceARNList(Aws::Vector<Aws::String>&& value) { m_resourceARNListHasBeenSet = true; m_resourceARNList = std::move(value); }
78 
87  inline TagResourcesRequest& WithResourceARNList(const Aws::Vector<Aws::String>& value) { SetResourceARNList(value); return *this;}
88 
97  inline TagResourcesRequest& WithResourceARNList(Aws::Vector<Aws::String>&& value) { SetResourceARNList(std::move(value)); return *this;}
98 
107  inline TagResourcesRequest& AddResourceARNList(const Aws::String& value) { m_resourceARNListHasBeenSet = true; m_resourceARNList.push_back(value); return *this; }
108 
117  inline TagResourcesRequest& AddResourceARNList(Aws::String&& value) { m_resourceARNListHasBeenSet = true; m_resourceARNList.push_back(std::move(value)); return *this; }
118 
127  inline TagResourcesRequest& AddResourceARNList(const char* value) { m_resourceARNListHasBeenSet = true; m_resourceARNList.push_back(value); return *this; }
128 
129 
134  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
135 
140  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 
146  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
147 
152  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
153 
158  inline TagResourcesRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
159 
164  inline TagResourcesRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
165 
170  inline TagResourcesRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
171 
176  inline TagResourcesRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
177 
182  inline TagResourcesRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
183 
188  inline TagResourcesRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
189 
194  inline TagResourcesRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
195 
200  inline TagResourcesRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
201 
206  inline TagResourcesRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
207 
208  private:
209 
210  Aws::Vector<Aws::String> m_resourceARNList;
211  bool m_resourceARNListHasBeenSet;
212 
214  bool m_tagsHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace ResourceGroupsTaggingAPI
219 } // namespace Aws
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::ResourceARNListHasBeenSet
bool ResourceARNListHasBeenSet() const
Definition: TagResourcesRequest.h:57
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::SetResourceARNList
void SetResourceARNList(const Aws::Vector< Aws::String > &value)
Definition: TagResourcesRequest.h:67
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddTags
TagResourcesRequest & AddTags(Aws::String &&key, const char *value)
Definition: TagResourcesRequest.h:200
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddTags
TagResourcesRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: TagResourcesRequest.h:182
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::SetResourceARNList
void SetResourceARNList(Aws::Vector< Aws::String > &&value)
Definition: TagResourcesRequest.h:77
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagResourcesRequest.h:140
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::WithTags
TagResourcesRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TagResourcesRequest.h:164
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::WithResourceARNList
TagResourcesRequest & WithResourceARNList(Aws::Vector< Aws::String > &&value)
Definition: TagResourcesRequest.h:97
AWS_RESOURCEGROUPSTAGGINGAPI_API
#define AWS_RESOURCEGROUPSTAGGINGAPI_API
Definition: ResourceGroupsTaggingAPI_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddTags
TagResourcesRequest & AddTags(const char *key, const char *value)
Definition: TagResourcesRequest.h:206
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::TagResourcesRequest
TagResourcesRequest()
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::GetResourceARNList
const Aws::Vector< Aws::String > & GetResourceARNList() const
Definition: TagResourcesRequest.h:47
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddTags
TagResourcesRequest & AddTags(const char *key, Aws::String &&value)
Definition: TagResourcesRequest.h:194
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::WithResourceARNList
TagResourcesRequest & WithResourceARNList(const Aws::Vector< Aws::String > &value)
Definition: TagResourcesRequest.h:87
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest
Definition: TagResourcesRequest.h:24
AWSString.h
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: TagResourcesRequest.h:134
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TagResourcesRequest.h:152
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddResourceARNList
TagResourcesRequest & AddResourceARNList(const char *value)
Definition: TagResourcesRequest.h:127
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::WithTags
TagResourcesRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TagResourcesRequest.h:158
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddTags
TagResourcesRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: TagResourcesRequest.h:188
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TagResourcesRequest.h:146
Aws::ResourceGroupsTaggingAPI::ResourceGroupsTaggingAPIRequest
Definition: ResourceGroupsTaggingAPIRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ResourceGroupsTaggingAPIRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagResourcesRequest.h:32
ResourceGroupsTaggingAPI_EXPORTS.h
AWSMap.h
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddTags
TagResourcesRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: TagResourcesRequest.h:170
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddResourceARNList
TagResourcesRequest & AddResourceARNList(Aws::String &&value)
Definition: TagResourcesRequest.h:117
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddResourceARNList
TagResourcesRequest & AddResourceARNList(const Aws::String &value)
Definition: TagResourcesRequest.h:107
Aws::ResourceGroupsTaggingAPI::Model::TagResourcesRequest::AddTags
TagResourcesRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: TagResourcesRequest.h:176