AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGroupRequest.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/ResourceGroupsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-groups/model/ResourceQuery.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/resource-groups/model/GroupConfigurationItem.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ResourceGroups
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_RESOURCEGROUPS_API CreateGroupRequest();
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_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
37
38
40
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline CreateGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline CreateGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline CreateGroupRequest& WithName(const char* value) { SetName(value); return *this;}
58
60
64 inline const Aws::String& GetDescription() const{ return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 inline CreateGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline CreateGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline CreateGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
83 inline const ResourceQuery& GetResourceQuery() const{ return m_resourceQuery; }
84 inline bool ResourceQueryHasBeenSet() const { return m_resourceQueryHasBeenSet; }
85 inline void SetResourceQuery(const ResourceQuery& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = value; }
86 inline void SetResourceQuery(ResourceQuery&& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = std::move(value); }
87 inline CreateGroupRequest& WithResourceQuery(const ResourceQuery& value) { SetResourceQuery(value); return *this;}
88 inline CreateGroupRequest& WithResourceQuery(ResourceQuery&& value) { SetResourceQuery(std::move(value)); return *this;}
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
98 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
99 inline CreateGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
100 inline CreateGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
101 inline CreateGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
102 inline CreateGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
103 inline CreateGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
104 inline CreateGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
105 inline CreateGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline CreateGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
107 inline CreateGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
109
111
121 inline const Aws::Vector<GroupConfigurationItem>& GetConfiguration() const{ return m_configuration; }
122 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
123 inline void SetConfiguration(const Aws::Vector<GroupConfigurationItem>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
124 inline void SetConfiguration(Aws::Vector<GroupConfigurationItem>&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
127 inline CreateGroupRequest& AddConfiguration(const GroupConfigurationItem& value) { m_configurationHasBeenSet = true; m_configuration.push_back(value); return *this; }
128 inline CreateGroupRequest& AddConfiguration(GroupConfigurationItem&& value) { m_configurationHasBeenSet = true; m_configuration.push_back(std::move(value)); return *this; }
130
132
136 inline int GetCriticality() const{ return m_criticality; }
137 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
138 inline void SetCriticality(int value) { m_criticalityHasBeenSet = true; m_criticality = value; }
139 inline CreateGroupRequest& WithCriticality(int value) { SetCriticality(value); return *this;}
141
143
147 inline const Aws::String& GetOwner() const{ return m_owner; }
148 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
149 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
150 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
151 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
152 inline CreateGroupRequest& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
153 inline CreateGroupRequest& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
154 inline CreateGroupRequest& WithOwner(const char* value) { SetOwner(value); return *this;}
156
158
161 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
162 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
163 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
164 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
165 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
166 inline CreateGroupRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
167 inline CreateGroupRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
168 inline CreateGroupRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
170 private:
171
172 Aws::String m_name;
173 bool m_nameHasBeenSet = false;
174
175 Aws::String m_description;
176 bool m_descriptionHasBeenSet = false;
177
178 ResourceQuery m_resourceQuery;
179 bool m_resourceQueryHasBeenSet = false;
180
182 bool m_tagsHasBeenSet = false;
183
185 bool m_configurationHasBeenSet = false;
186
187 int m_criticality;
188 bool m_criticalityHasBeenSet = false;
189
190 Aws::String m_owner;
191 bool m_ownerHasBeenSet = false;
192
193 Aws::String m_displayName;
194 bool m_displayNameHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace ResourceGroups
199} // namespace Aws
CreateGroupRequest & AddConfiguration(const GroupConfigurationItem &value)
CreateGroupRequest & WithName(const Aws::String &value)
CreateGroupRequest & WithDescription(Aws::String &&value)
void SetConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
CreateGroupRequest & WithOwner(const char *value)
CreateGroupRequest & AddConfiguration(GroupConfigurationItem &&value)
CreateGroupRequest & WithName(Aws::String &&value)
CreateGroupRequest & WithConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
CreateGroupRequest & WithCriticality(int value)
virtual const char * GetServiceRequestName() const override
CreateGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateGroupRequest & WithDescription(const Aws::String &value)
CreateGroupRequest & WithResourceQuery(ResourceQuery &&value)
CreateGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateGroupRequest & AddTags(Aws::String &&key, const char *value)
CreateGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateGroupRequest & WithDisplayName(const Aws::String &value)
void SetConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
CreateGroupRequest & WithResourceQuery(const ResourceQuery &value)
CreateGroupRequest & WithDisplayName(Aws::String &&value)
CreateGroupRequest & AddTags(const char *key, Aws::String &&value)
CreateGroupRequest & WithDisplayName(const char *value)
CreateGroupRequest & WithName(const char *value)
CreateGroupRequest & WithOwner(Aws::String &&value)
void SetResourceQuery(const ResourceQuery &value)
CreateGroupRequest & AddTags(const char *key, const char *value)
CreateGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateGroupRequest & WithOwner(const Aws::String &value)
CreateGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateGroupRequest & WithConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
CreateGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateGroupRequest & WithDescription(const char *value)
const Aws::Vector< GroupConfigurationItem > & GetConfiguration() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector