AWS SDK for C++  1.9.66
AWS SDK for C++
CreateGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace ResourceGroups
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
57  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 
67  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 
77  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
78 
87  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
88 
97  inline CreateGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
98 
107  inline CreateGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 
117  inline CreateGroupRequest& WithName(const char* value) { SetName(value); return *this;}
118 
119 
124  inline const Aws::String& GetDescription() const{ return m_description; }
125 
130  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 
136  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
137 
142  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
143 
148  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
149 
154  inline CreateGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
155 
160  inline CreateGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
161 
166  inline CreateGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
167 
168 
177  inline const ResourceQuery& GetResourceQuery() const{ return m_resourceQuery; }
178 
187  inline bool ResourceQueryHasBeenSet() const { return m_resourceQueryHasBeenSet; }
188 
197  inline void SetResourceQuery(const ResourceQuery& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = value; }
198 
207  inline void SetResourceQuery(ResourceQuery&& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = std::move(value); }
208 
217  inline CreateGroupRequest& WithResourceQuery(const ResourceQuery& value) { SetResourceQuery(value); return *this;}
218 
227  inline CreateGroupRequest& WithResourceQuery(ResourceQuery&& value) { SetResourceQuery(std::move(value)); return *this;}
228 
229 
233  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
234 
238  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
239 
243  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
244 
248  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
249 
253  inline CreateGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
254 
258  inline CreateGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
259 
263  inline CreateGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
264 
268  inline CreateGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
269 
273  inline CreateGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
274 
278  inline CreateGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
279 
283  inline CreateGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
284 
288  inline CreateGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
289 
293  inline CreateGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
294 
295 
306  inline const Aws::Vector<GroupConfigurationItem>& GetConfiguration() const{ return m_configuration; }
307 
318  inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
319 
330  inline void SetConfiguration(const Aws::Vector<GroupConfigurationItem>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
331 
342  inline void SetConfiguration(Aws::Vector<GroupConfigurationItem>&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
343 
354  inline CreateGroupRequest& WithConfiguration(const Aws::Vector<GroupConfigurationItem>& value) { SetConfiguration(value); return *this;}
355 
366  inline CreateGroupRequest& WithConfiguration(Aws::Vector<GroupConfigurationItem>&& value) { SetConfiguration(std::move(value)); return *this;}
367 
378  inline CreateGroupRequest& AddConfiguration(const GroupConfigurationItem& value) { m_configurationHasBeenSet = true; m_configuration.push_back(value); return *this; }
379 
390  inline CreateGroupRequest& AddConfiguration(GroupConfigurationItem&& value) { m_configurationHasBeenSet = true; m_configuration.push_back(std::move(value)); return *this; }
391 
392  private:
393 
394  Aws::String m_name;
395  bool m_nameHasBeenSet;
396 
397  Aws::String m_description;
398  bool m_descriptionHasBeenSet;
399 
400  ResourceQuery m_resourceQuery;
401  bool m_resourceQueryHasBeenSet;
402 
404  bool m_tagsHasBeenSet;
405 
406  Aws::Vector<GroupConfigurationItem> m_configuration;
407  bool m_configurationHasBeenSet;
408  };
409 
410 } // namespace Model
411 } // namespace ResourceGroups
412 } // namespace Aws
Aws::ResourceGroups::Model::CreateGroupRequest::AddConfiguration
CreateGroupRequest & AddConfiguration(const GroupConfigurationItem &value)
Definition: CreateGroupRequest.h:378
ResourceQuery.h
Aws::ResourceGroups::Model::CreateGroupRequest::AddTags
CreateGroupRequest & AddTags(const char *key, const char *value)
Definition: CreateGroupRequest.h:293
Aws::ResourceGroups::Model::CreateGroupRequest::GetResourceQuery
const ResourceQuery & GetResourceQuery() const
Definition: CreateGroupRequest.h:177
Aws::ResourceGroups::Model::CreateGroupRequest::AddTags
CreateGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateGroupRequest.h:263
Aws::ResourceGroups::Model::CreateGroupRequest::WithName
CreateGroupRequest & WithName(const char *value)
Definition: CreateGroupRequest.h:117
Aws::ResourceGroups::Model::CreateGroupRequest::SetConfiguration
void SetConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
Definition: CreateGroupRequest.h:330
Aws::ResourceGroups::Model::CreateGroupRequest
Definition: CreateGroupRequest.h:26
Aws::ResourceGroups::Model::CreateGroupRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateGroupRequest.h:248
Aws::ResourceGroups::Model::CreateGroupRequest::SetName
void SetName(const char *value)
Definition: CreateGroupRequest.h:87
Aws::ResourceGroups::Model::CreateGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateGroupRequest.h:124
Aws::ResourceGroups::Model::CreateGroupRequest::AddTags
CreateGroupRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateGroupRequest.h:283
Aws::ResourceGroups::Model::CreateGroupRequest::AddTags
CreateGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateGroupRequest.h:273
Aws::ResourceGroups::Model::CreateGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateGroupRequest.h:136
AWS_RESOURCEGROUPS_API
#define AWS_RESOURCEGROUPS_API
Definition: ResourceGroups_EXPORTS.h:28
Aws::ResourceGroups::Model::CreateGroupRequest::ConfigurationHasBeenSet
bool ConfigurationHasBeenSet() const
Definition: CreateGroupRequest.h:318
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ResourceGroups::Model::CreateGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateGroupRequest.h:130
Aws::ResourceGroups::Model::CreateGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateGroupRequest.h:142
Aws::ResourceGroups::Model::CreateGroupRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateGroupRequest.h:57
AWSVector.h
Aws::ResourceGroups::Model::CreateGroupRequest::WithTags
CreateGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateGroupRequest.h:253
Aws::ResourceGroups::Model::CreateGroupRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateGroupRequest.h:243
Aws::ResourceGroups::Model::CreateGroupRequest::GetConfiguration
const Aws::Vector< GroupConfigurationItem > & GetConfiguration() const
Definition: CreateGroupRequest.h:306
Aws::ResourceGroups::Model::CreateGroupRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateGroupRequest.h:148
Aws::ResourceGroups::Model::CreateGroupRequest::GetName
const Aws::String & GetName() const
Definition: CreateGroupRequest.h:47
Aws::ResourceGroups::Model::CreateGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ResourceGroups::Model::GroupConfigurationItem
Definition: GroupConfigurationItem.h:37
Aws::ResourceGroups::Model::CreateGroupRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateGroupRequest.h:67
Aws::ResourceGroups::ResourceGroupsRequest
Definition: ResourceGroupsRequest.h:17
Aws::ResourceGroups::Model::CreateGroupRequest::WithResourceQuery
CreateGroupRequest & WithResourceQuery(const ResourceQuery &value)
Definition: CreateGroupRequest.h:217
Aws::ResourceGroups::Model::CreateGroupRequest::WithName
CreateGroupRequest & WithName(const Aws::String &value)
Definition: CreateGroupRequest.h:97
Aws::ResourceGroups::Model::CreateGroupRequest::AddTags
CreateGroupRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateGroupRequest.h:288
Aws::ResourceGroups::Model::CreateGroupRequest::WithConfiguration
CreateGroupRequest & WithConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
Definition: CreateGroupRequest.h:354
Aws::ResourceGroups::Model::CreateGroupRequest::SetResourceQuery
void SetResourceQuery(ResourceQuery &&value)
Definition: CreateGroupRequest.h:207
AWSString.h
Aws::ResourceGroups::Model::CreateGroupRequest::SetConfiguration
void SetConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
Definition: CreateGroupRequest.h:342
Aws::ResourceGroups::Model::CreateGroupRequest::SetResourceQuery
void SetResourceQuery(const ResourceQuery &value)
Definition: CreateGroupRequest.h:197
Aws::ResourceGroups::Model::CreateGroupRequest::WithDescription
CreateGroupRequest & WithDescription(Aws::String &&value)
Definition: CreateGroupRequest.h:160
Aws::ResourceGroups::Model::CreateGroupRequest::CreateGroupRequest
CreateGroupRequest()
Aws::ResourceGroups::Model::CreateGroupRequest::AddConfiguration
CreateGroupRequest & AddConfiguration(GroupConfigurationItem &&value)
Definition: CreateGroupRequest.h:390
Aws::ResourceGroups::Model::CreateGroupRequest::WithResourceQuery
CreateGroupRequest & WithResourceQuery(ResourceQuery &&value)
Definition: CreateGroupRequest.h:227
Aws::ResourceGroups::Model::CreateGroupRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateGroupRequest.h:77
Aws::ResourceGroups::Model::CreateGroupRequest::WithTags
CreateGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateGroupRequest.h:258
Aws::ResourceGroups::Model::CreateGroupRequest::WithDescription
CreateGroupRequest & WithDescription(const Aws::String &value)
Definition: CreateGroupRequest.h:154
Aws::ResourceGroups::Model::CreateGroupRequest::ResourceQueryHasBeenSet
bool ResourceQueryHasBeenSet() const
Definition: CreateGroupRequest.h:187
Aws::ResourceGroups::Model::CreateGroupRequest::WithConfiguration
CreateGroupRequest & WithConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
Definition: CreateGroupRequest.h:366
Aws::ResourceGroups::Model::CreateGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateGroupRequest.h:34
ResourceGroupsRequest.h
Aws::ResourceGroups::Model::CreateGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateGroupRequest.h:238
Aws
Definition: AccessManagementClient.h:15
Aws::ResourceGroups::Model::ResourceQuery
Definition: ResourceQuery.h:71
ResourceGroups_EXPORTS.h
Aws::ResourceGroups::Model::CreateGroupRequest::WithDescription
CreateGroupRequest & WithDescription(const char *value)
Definition: CreateGroupRequest.h:166
Aws::ResourceGroups::Model::CreateGroupRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateGroupRequest.h:233
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroups::Model::CreateGroupRequest::AddTags
CreateGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateGroupRequest.h:268
GroupConfigurationItem.h
AWSMap.h
Aws::ResourceGroups::Model::CreateGroupRequest::WithName
CreateGroupRequest & WithName(Aws::String &&value)
Definition: CreateGroupRequest.h:107
Aws::ResourceGroups::Model::CreateGroupRequest::AddTags
CreateGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateGroupRequest.h:278
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19