AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateEnvironmentRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/assurance/model/EnvironmentScope.h>
10#include <aws/assurance/model/IdentityStoreConfig.h>
11#include <aws/assurance/model/Tag.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Assurance {
19namespace Model {
20
24 public:
25 AWS_ASSURANCE_API CreateEnvironmentRequest() = 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 "CreateEnvironment"; }
32
33 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
42 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
43 template <typename EnvironmentNameT = Aws::String>
44 void SetEnvironmentName(EnvironmentNameT&& value) {
45 m_environmentNameHasBeenSet = true;
46 m_environmentName = std::forward<EnvironmentNameT>(value);
47 }
48 template <typename EnvironmentNameT = Aws::String>
49 CreateEnvironmentRequest& WithEnvironmentName(EnvironmentNameT&& value) {
50 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::String& GetDomainPrefix() const { return m_domainPrefix; }
81 inline bool DomainPrefixHasBeenSet() const { return m_domainPrefixHasBeenSet; }
82 template <typename DomainPrefixT = Aws::String>
83 void SetDomainPrefix(DomainPrefixT&& value) {
84 m_domainPrefixHasBeenSet = true;
85 m_domainPrefix = std::forward<DomainPrefixT>(value);
86 }
87 template <typename DomainPrefixT = Aws::String>
89 SetDomainPrefix(std::forward<DomainPrefixT>(value));
90 return *this;
91 }
93
95
102 inline const Aws::String& GetOperatorRole() const { return m_operatorRole; }
103 inline bool OperatorRoleHasBeenSet() const { return m_operatorRoleHasBeenSet; }
104 template <typename OperatorRoleT = Aws::String>
105 void SetOperatorRole(OperatorRoleT&& value) {
106 m_operatorRoleHasBeenSet = true;
107 m_operatorRole = std::forward<OperatorRoleT>(value);
108 }
109 template <typename OperatorRoleT = Aws::String>
111 SetOperatorRole(std::forward<OperatorRoleT>(value));
112 return *this;
113 }
115
117
120 inline const IdentityStoreConfig& GetIdentityStore() const { return m_identityStore; }
121 inline bool IdentityStoreHasBeenSet() const { return m_identityStoreHasBeenSet; }
122 template <typename IdentityStoreT = IdentityStoreConfig>
123 void SetIdentityStore(IdentityStoreT&& value) {
124 m_identityStoreHasBeenSet = true;
125 m_identityStore = std::forward<IdentityStoreT>(value);
126 }
127 template <typename IdentityStoreT = IdentityStoreConfig>
129 SetIdentityStore(std::forward<IdentityStoreT>(value));
130 return *this;
131 }
133
135
140 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
141 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
142 template <typename KmsKeyArnT = Aws::String>
143 void SetKmsKeyArn(KmsKeyArnT&& value) {
144 m_kmsKeyArnHasBeenSet = true;
145 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
146 }
147 template <typename KmsKeyArnT = Aws::String>
149 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
150 return *this;
151 }
153
155
160 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
161 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
162 template <typename RegionsT = Aws::Vector<Aws::String>>
163 void SetRegions(RegionsT&& value) {
164 m_regionsHasBeenSet = true;
165 m_regions = std::forward<RegionsT>(value);
166 }
167 template <typename RegionsT = Aws::Vector<Aws::String>>
169 SetRegions(std::forward<RegionsT>(value));
170 return *this;
171 }
172 template <typename RegionsT = Aws::String>
174 m_regionsHasBeenSet = true;
175 m_regions.emplace_back(std::forward<RegionsT>(value));
176 return *this;
177 }
179
181
190 inline EnvironmentScope GetEnvironmentScope() const { return m_environmentScope; }
191 inline bool EnvironmentScopeHasBeenSet() const { return m_environmentScopeHasBeenSet; }
193 m_environmentScopeHasBeenSet = true;
194 m_environmentScope = value;
195 }
197 SetEnvironmentScope(value);
198 return *this;
199 }
201
203
209 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitIds() const { return m_organizationalUnitIds; }
210 inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; }
211 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
212 void SetOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
213 m_organizationalUnitIdsHasBeenSet = true;
214 m_organizationalUnitIds = std::forward<OrganizationalUnitIdsT>(value);
215 }
216 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
217 CreateEnvironmentRequest& WithOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
218 SetOrganizationalUnitIds(std::forward<OrganizationalUnitIdsT>(value));
219 return *this;
220 }
221 template <typename OrganizationalUnitIdsT = Aws::String>
222 CreateEnvironmentRequest& AddOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
223 m_organizationalUnitIdsHasBeenSet = true;
224 m_organizationalUnitIds.emplace_back(std::forward<OrganizationalUnitIdsT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template <typename TagsT = Aws::Vector<Tag>>
236 void SetTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags = std::forward<TagsT>(value);
239 }
240 template <typename TagsT = Aws::Vector<Tag>>
242 SetTags(std::forward<TagsT>(value));
243 return *this;
244 }
245 template <typename TagsT = Tag>
247 m_tagsHasBeenSet = true;
248 m_tags.emplace_back(std::forward<TagsT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_environmentName;
254
255 Aws::String m_description;
256
257 Aws::String m_domainPrefix;
258
259 Aws::String m_operatorRole;
260
261 IdentityStoreConfig m_identityStore;
262
263 Aws::String m_kmsKeyArn;
264
265 Aws::Vector<Aws::String> m_regions;
266
268
269 Aws::Vector<Aws::String> m_organizationalUnitIds;
270
271 Aws::Vector<Tag> m_tags;
272 bool m_environmentNameHasBeenSet = false;
273 bool m_descriptionHasBeenSet = false;
274 bool m_domainPrefixHasBeenSet = false;
275 bool m_operatorRoleHasBeenSet = false;
276 bool m_identityStoreHasBeenSet = false;
277 bool m_kmsKeyArnHasBeenSet = false;
278 bool m_regionsHasBeenSet = false;
279 bool m_environmentScopeHasBeenSet = false;
280 bool m_organizationalUnitIdsHasBeenSet = false;
281 bool m_tagsHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace Assurance
286} // namespace Aws
CreateEnvironmentRequest & AddRegions(RegionsT &&value)
CreateEnvironmentRequest & WithTags(TagsT &&value)
CreateEnvironmentRequest & AddTags(TagsT &&value)
CreateEnvironmentRequest & WithDescription(DescriptionT &&value)
void SetOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
CreateEnvironmentRequest & WithOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
CreateEnvironmentRequest & WithKmsKeyArn(KmsKeyArnT &&value)
CreateEnvironmentRequest & WithOperatorRole(OperatorRoleT &&value)
CreateEnvironmentRequest & WithRegions(RegionsT &&value)
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ASSURANCE_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & WithDomainPrefix(DomainPrefixT &&value)
CreateEnvironmentRequest & WithEnvironmentName(EnvironmentNameT &&value)
CreateEnvironmentRequest & WithIdentityStore(IdentityStoreT &&value)
AWS_ASSURANCE_API CreateEnvironmentRequest()=default
const Aws::Vector< Aws::String > & GetRegions() const
const Aws::Vector< Aws::String > & GetOrganizationalUnitIds() const
virtual const char * GetServiceRequestName() const override
CreateEnvironmentRequest & WithEnvironmentScope(EnvironmentScope value)
CreateEnvironmentRequest & AddOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector