AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resource-groups/ResourceGroupsRequest.h>
11#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
12#include <aws/resource-groups/model/GroupConfigurationItem.h>
13#include <aws/resource-groups/model/ResourceQuery.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ResourceGroups {
19namespace Model {
20
24 public:
25 AWS_RESOURCEGROUPS_API CreateGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
32
33 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
34
36
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 CreateGroupRequest& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 CreateGroupRequest& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
87 inline const ResourceQuery& GetResourceQuery() const { return m_resourceQuery; }
88 inline bool ResourceQueryHasBeenSet() const { return m_resourceQueryHasBeenSet; }
89 template <typename ResourceQueryT = ResourceQuery>
90 void SetResourceQuery(ResourceQueryT&& value) {
91 m_resourceQueryHasBeenSet = true;
92 m_resourceQuery = std::forward<ResourceQueryT>(value);
93 }
94 template <typename ResourceQueryT = ResourceQuery>
95 CreateGroupRequest& WithResourceQuery(ResourceQueryT&& value) {
96 SetResourceQuery(std::forward<ResourceQueryT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags = std::forward<TagsT>(value);
111 }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 CreateGroupRequest& WithTags(TagsT&& value) {
114 SetTags(std::forward<TagsT>(value));
115 return *this;
116 }
117 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
118 CreateGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
121 return *this;
122 }
124
126
136 inline const Aws::Vector<GroupConfigurationItem>& GetConfiguration() const { return m_configuration; }
137 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
138 template <typename ConfigurationT = Aws::Vector<GroupConfigurationItem>>
139 void SetConfiguration(ConfigurationT&& value) {
140 m_configurationHasBeenSet = true;
141 m_configuration = std::forward<ConfigurationT>(value);
142 }
143 template <typename ConfigurationT = Aws::Vector<GroupConfigurationItem>>
144 CreateGroupRequest& WithConfiguration(ConfigurationT&& value) {
145 SetConfiguration(std::forward<ConfigurationT>(value));
146 return *this;
147 }
148 template <typename ConfigurationT = GroupConfigurationItem>
149 CreateGroupRequest& AddConfiguration(ConfigurationT&& value) {
150 m_configurationHasBeenSet = true;
151 m_configuration.emplace_back(std::forward<ConfigurationT>(value));
152 return *this;
153 }
155
157
161 inline int GetCriticality() const { return m_criticality; }
162 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
163 inline void SetCriticality(int value) {
164 m_criticalityHasBeenSet = true;
165 m_criticality = value;
166 }
168 SetCriticality(value);
169 return *this;
170 }
172
174
178 inline const Aws::String& GetOwner() const { return m_owner; }
179 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
180 template <typename OwnerT = Aws::String>
181 void SetOwner(OwnerT&& value) {
182 m_ownerHasBeenSet = true;
183 m_owner = std::forward<OwnerT>(value);
184 }
185 template <typename OwnerT = Aws::String>
186 CreateGroupRequest& WithOwner(OwnerT&& value) {
187 SetOwner(std::forward<OwnerT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetDisplayName() const { return m_displayName; }
197 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
198 template <typename DisplayNameT = Aws::String>
199 void SetDisplayName(DisplayNameT&& value) {
200 m_displayNameHasBeenSet = true;
201 m_displayName = std::forward<DisplayNameT>(value);
202 }
203 template <typename DisplayNameT = Aws::String>
204 CreateGroupRequest& WithDisplayName(DisplayNameT&& value) {
205 SetDisplayName(std::forward<DisplayNameT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_name;
211
212 Aws::String m_description;
213
214 ResourceQuery m_resourceQuery;
215
217
219
220 int m_criticality{0};
221
222 Aws::String m_owner;
223
224 Aws::String m_displayName;
225 bool m_nameHasBeenSet = false;
226 bool m_descriptionHasBeenSet = false;
227 bool m_resourceQueryHasBeenSet = false;
228 bool m_tagsHasBeenSet = false;
229 bool m_configurationHasBeenSet = false;
230 bool m_criticalityHasBeenSet = false;
231 bool m_ownerHasBeenSet = false;
232 bool m_displayNameHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace ResourceGroups
237} // namespace Aws
AWS_RESOURCEGROUPS_API CreateGroupRequest()=default
CreateGroupRequest & WithCriticality(int value)
virtual const char * GetServiceRequestName() const override
CreateGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
CreateGroupRequest & WithConfiguration(ConfigurationT &&value)
CreateGroupRequest & WithDisplayName(DisplayNameT &&value)
CreateGroupRequest & WithName(NameT &&value)
CreateGroupRequest & WithOwner(OwnerT &&value)
CreateGroupRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateGroupRequest & WithResourceQuery(ResourceQueryT &&value)
CreateGroupRequest & AddConfiguration(ConfigurationT &&value)
const Aws::Vector< GroupConfigurationItem > & GetConfiguration() const
CreateGroupRequest & WithDescription(DescriptionT &&value)
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