AWS SDK for C++  1.9.104
AWS SDK for C++
CreateAttributeGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace AppRegistry
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 "CreateAttributeGroup"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
45  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
50  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 
55  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 
60  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 
65  inline CreateAttributeGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 
70  inline CreateAttributeGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 
75  inline CreateAttributeGroupRequest& WithName(const char* value) { SetName(value); return *this;}
76 
77 
81  inline const Aws::String& GetDescription() const{ return m_description; }
82 
86  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 
91  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 
96  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
97 
101  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 
106  inline CreateAttributeGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 
111  inline CreateAttributeGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 
116  inline CreateAttributeGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
117 
118 
123  inline const Aws::String& GetAttributes() const{ return m_attributes; }
124 
129  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
130 
135  inline void SetAttributes(const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes = value; }
136 
141  inline void SetAttributes(Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
142 
147  inline void SetAttributes(const char* value) { m_attributesHasBeenSet = true; m_attributes.assign(value); }
148 
153  inline CreateAttributeGroupRequest& WithAttributes(const Aws::String& value) { SetAttributes(value); return *this;}
154 
159  inline CreateAttributeGroupRequest& WithAttributes(Aws::String&& value) { SetAttributes(std::move(value)); return *this;}
160 
165  inline CreateAttributeGroupRequest& WithAttributes(const char* value) { SetAttributes(value); return *this;}
166 
167 
171  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
172 
176  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 
181  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 
186  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 
191  inline CreateAttributeGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
192 
196  inline CreateAttributeGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
197 
201  inline CreateAttributeGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
202 
206  inline CreateAttributeGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
207 
211  inline CreateAttributeGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
212 
216  inline CreateAttributeGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
217 
221  inline CreateAttributeGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
222 
226  inline CreateAttributeGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
227 
231  inline CreateAttributeGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
232 
233 
241  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
242 
250  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
251 
259  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
260 
268  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
269 
277  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
278 
286  inline CreateAttributeGroupRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
287 
295  inline CreateAttributeGroupRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
296 
304  inline CreateAttributeGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
305 
306  private:
307 
308  Aws::String m_name;
309  bool m_nameHasBeenSet;
310 
311  Aws::String m_description;
312  bool m_descriptionHasBeenSet;
313 
314  Aws::String m_attributes;
315  bool m_attributesHasBeenSet;
316 
318  bool m_tagsHasBeenSet;
319 
320  Aws::String m_clientToken;
321  bool m_clientTokenHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace AppRegistry
326 } // namespace Aws
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithClientToken
CreateAttributeGroupRequest & WithClientToken(Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:295
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetAttributes
void SetAttributes(Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:141
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAttributeGroupRequest.h:181
Aws::AppRegistry::Model::CreateAttributeGroupRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateAttributeGroupRequest.h:45
Aws::AppRegistry::Model::CreateAttributeGroupRequest::AddTags
CreateAttributeGroupRequest & AddTags(const char *key, const char *value)
Definition: CreateAttributeGroupRequest.h:231
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithClientToken
CreateAttributeGroupRequest & WithClientToken(const char *value)
Definition: CreateAttributeGroupRequest.h:304
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithAttributes
CreateAttributeGroupRequest & WithAttributes(Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:159
Aws::AppRegistry::AppRegistryRequest
Definition: AppRegistryRequest.h:17
AWS_APPREGISTRY_API
#define AWS_APPREGISTRY_API
Definition: AppRegistry_EXPORTS.h:28
Aws::AppRegistry::Model::CreateAttributeGroupRequest::GetName
const Aws::String & GetName() const
Definition: CreateAttributeGroupRequest.h:40
Aws::AppRegistry::Model::CreateAttributeGroupRequest
Definition: CreateAttributeGroupRequest.h:24
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithName
CreateAttributeGroupRequest & WithName(Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:70
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithDescription
CreateAttributeGroupRequest & WithDescription(const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:106
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithTags
CreateAttributeGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAttributeGroupRequest.h:191
Aws::AppRegistry::Model::CreateAttributeGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAttributeGroupRequest.h:176
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAttributeGroupRequest.h:186
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithClientToken
CreateAttributeGroupRequest & WithClientToken(const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:286
Aws::AppRegistry::Model::CreateAttributeGroupRequest::CreateAttributeGroupRequest
CreateAttributeGroupRequest()
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithDescription
CreateAttributeGroupRequest & WithDescription(const char *value)
Definition: CreateAttributeGroupRequest.h:116
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetAttributes
void SetAttributes(const char *value)
Definition: CreateAttributeGroupRequest.h:147
Aws::AppRegistry::Model::CreateAttributeGroupRequest::AddTags
CreateAttributeGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:211
Aws::AppRegistry::Model::CreateAttributeGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAttributeGroupRequest.h:32
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:91
Aws::AppRegistry::Model::CreateAttributeGroupRequest::AddTags
CreateAttributeGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:216
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetAttributes
void SetAttributes(const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:135
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithName
CreateAttributeGroupRequest & WithName(const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:65
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithAttributes
CreateAttributeGroupRequest & WithAttributes(const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:153
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithTags
CreateAttributeGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAttributeGroupRequest.h:196
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:96
Aws::AppRegistry::Model::CreateAttributeGroupRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateAttributeGroupRequest.h:241
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetName
void SetName(const char *value)
Definition: CreateAttributeGroupRequest.h:60
Aws::AppRegistry::Model::CreateAttributeGroupRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateAttributeGroupRequest.h:250
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:50
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:55
AWSString.h
Aws::AppRegistry::Model::CreateAttributeGroupRequest::AddTags
CreateAttributeGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:201
Aws::AppRegistry::Model::CreateAttributeGroupRequest::AddTags
CreateAttributeGroupRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:221
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:268
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateAttributeGroupRequest.h:277
Aws::AppRegistry::Model::CreateAttributeGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateAttributeGroupRequest.h:86
Aws::AppRegistry::Model::CreateAttributeGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateAttributeGroupRequest.h:81
AppRegistryRequest.h
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateAttributeGroupRequest.h:101
Aws::AppRegistry::Model::CreateAttributeGroupRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: CreateAttributeGroupRequest.h:129
Aws::AppRegistry::Model::CreateAttributeGroupRequest::GetAttributes
const Aws::String & GetAttributes() const
Definition: CreateAttributeGroupRequest.h:123
Aws::AppRegistry::Model::CreateAttributeGroupRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateAttributeGroupRequest.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithName
CreateAttributeGroupRequest & WithName(const char *value)
Definition: CreateAttributeGroupRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppRegistry::Model::CreateAttributeGroupRequest::AddTags
CreateAttributeGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:206
Aws::AppRegistry::Model::CreateAttributeGroupRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateAttributeGroupRequest.h:259
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithAttributes
CreateAttributeGroupRequest & WithAttributes(const char *value)
Definition: CreateAttributeGroupRequest.h:165
UUID.h
AWSMap.h
AppRegistry_EXPORTS.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::AppRegistry::Model::CreateAttributeGroupRequest::AddTags
CreateAttributeGroupRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateAttributeGroupRequest.h:226
Aws::AppRegistry::Model::CreateAttributeGroupRequest::WithDescription
CreateAttributeGroupRequest & WithDescription(Aws::String &&value)
Definition: CreateAttributeGroupRequest.h:111