AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
Environment.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/EnvironmentScope.h>
9#include <aws/assurance/model/EnvironmentStatus.h>
10#include <aws/assurance/model/IdentityStoreInfo.h>
11#include <aws/assurance/model/Tag.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/crt/cbor/Cbor.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace Assurance {
26namespace Model {
27
36 public:
37 AWS_ASSURANCE_API Environment() = default;
38 AWS_ASSURANCE_API Environment(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_ASSURANCE_API Environment& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
46 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
47 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
48 template <typename EnvironmentIdT = Aws::String>
49 void SetEnvironmentId(EnvironmentIdT&& value) {
50 m_environmentIdHasBeenSet = true;
51 m_environmentId = std::forward<EnvironmentIdT>(value);
52 }
53 template <typename EnvironmentIdT = Aws::String>
54 Environment& WithEnvironmentId(EnvironmentIdT&& value) {
55 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
65 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
66 template <typename EnvironmentNameT = Aws::String>
67 void SetEnvironmentName(EnvironmentNameT&& value) {
68 m_environmentNameHasBeenSet = true;
69 m_environmentName = std::forward<EnvironmentNameT>(value);
70 }
71 template <typename EnvironmentNameT = Aws::String>
72 Environment& WithEnvironmentName(EnvironmentNameT&& value) {
73 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
83 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
84 template <typename EnvironmentArnT = Aws::String>
85 void SetEnvironmentArn(EnvironmentArnT&& value) {
86 m_environmentArnHasBeenSet = true;
87 m_environmentArn = std::forward<EnvironmentArnT>(value);
88 }
89 template <typename EnvironmentArnT = Aws::String>
90 Environment& WithEnvironmentArn(EnvironmentArnT&& value) {
91 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
108 Environment& WithDescription(DescriptionT&& value) {
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
118 inline const IdentityStoreInfo& GetIdentityStore() const { return m_identityStore; }
119 inline bool IdentityStoreHasBeenSet() const { return m_identityStoreHasBeenSet; }
120 template <typename IdentityStoreT = IdentityStoreInfo>
121 void SetIdentityStore(IdentityStoreT&& value) {
122 m_identityStoreHasBeenSet = true;
123 m_identityStore = std::forward<IdentityStoreT>(value);
124 }
125 template <typename IdentityStoreT = IdentityStoreInfo>
126 Environment& WithIdentityStore(IdentityStoreT&& value) {
127 SetIdentityStore(std::forward<IdentityStoreT>(value));
128 return *this;
129 }
131
133
139 inline const Aws::String& GetDomainPrefix() const { return m_domainPrefix; }
140 inline bool DomainPrefixHasBeenSet() const { return m_domainPrefixHasBeenSet; }
141 template <typename DomainPrefixT = Aws::String>
142 void SetDomainPrefix(DomainPrefixT&& value) {
143 m_domainPrefixHasBeenSet = true;
144 m_domainPrefix = std::forward<DomainPrefixT>(value);
145 }
146 template <typename DomainPrefixT = Aws::String>
147 Environment& WithDomainPrefix(DomainPrefixT&& value) {
148 SetDomainPrefix(std::forward<DomainPrefixT>(value));
149 return *this;
150 }
152
154
160 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
161 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
162 template <typename ServiceRoleT = Aws::String>
163 void SetServiceRole(ServiceRoleT&& value) {
164 m_serviceRoleHasBeenSet = true;
165 m_serviceRole = std::forward<ServiceRoleT>(value);
166 }
167 template <typename ServiceRoleT = Aws::String>
168 Environment& WithServiceRole(ServiceRoleT&& value) {
169 SetServiceRole(std::forward<ServiceRoleT>(value));
170 return *this;
171 }
173
175
180 inline const Aws::String& GetOperatorRole() const { return m_operatorRole; }
181 inline bool OperatorRoleHasBeenSet() const { return m_operatorRoleHasBeenSet; }
182 template <typename OperatorRoleT = Aws::String>
183 void SetOperatorRole(OperatorRoleT&& value) {
184 m_operatorRoleHasBeenSet = true;
185 m_operatorRole = std::forward<OperatorRoleT>(value);
186 }
187 template <typename OperatorRoleT = Aws::String>
188 Environment& WithOperatorRole(OperatorRoleT&& value) {
189 SetOperatorRole(std::forward<OperatorRoleT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
200 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
201 template <typename KmsKeyArnT = Aws::String>
202 void SetKmsKeyArn(KmsKeyArnT&& value) {
203 m_kmsKeyArnHasBeenSet = true;
204 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
205 }
206 template <typename KmsKeyArnT = Aws::String>
207 Environment& WithKmsKeyArn(KmsKeyArnT&& value) {
208 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
209 return *this;
210 }
212
214
217 inline EnvironmentStatus GetStatus() const { return m_status; }
218 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
219 inline void SetStatus(EnvironmentStatus value) {
220 m_statusHasBeenSet = true;
221 m_status = value;
222 }
224 SetStatus(value);
225 return *this;
226 }
228
230
235 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
236 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
237 template <typename RegionsT = Aws::Vector<Aws::String>>
238 void SetRegions(RegionsT&& value) {
239 m_regionsHasBeenSet = true;
240 m_regions = std::forward<RegionsT>(value);
241 }
242 template <typename RegionsT = Aws::Vector<Aws::String>>
243 Environment& WithRegions(RegionsT&& value) {
244 SetRegions(std::forward<RegionsT>(value));
245 return *this;
246 }
247 template <typename RegionsT = Aws::String>
248 Environment& AddRegions(RegionsT&& value) {
249 m_regionsHasBeenSet = true;
250 m_regions.emplace_back(std::forward<RegionsT>(value));
251 return *this;
252 }
254
256
259 inline EnvironmentScope GetEnvironmentScope() const { return m_environmentScope; }
260 inline bool EnvironmentScopeHasBeenSet() const { return m_environmentScopeHasBeenSet; }
262 m_environmentScopeHasBeenSet = true;
263 m_environmentScope = value;
264 }
266 SetEnvironmentScope(value);
267 return *this;
268 }
270
272
277 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitIds() const { return m_organizationalUnitIds; }
278 inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; }
279 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
280 void SetOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
281 m_organizationalUnitIdsHasBeenSet = true;
282 m_organizationalUnitIds = std::forward<OrganizationalUnitIdsT>(value);
283 }
284 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
285 Environment& WithOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
286 SetOrganizationalUnitIds(std::forward<OrganizationalUnitIdsT>(value));
287 return *this;
288 }
289 template <typename OrganizationalUnitIdsT = Aws::String>
290 Environment& AddOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
291 m_organizationalUnitIdsHasBeenSet = true;
292 m_organizationalUnitIds.emplace_back(std::forward<OrganizationalUnitIdsT>(value));
293 return *this;
294 }
296
298
302 inline const Aws::String& GetEvidenceLocation() const { return m_evidenceLocation; }
303 inline bool EvidenceLocationHasBeenSet() const { return m_evidenceLocationHasBeenSet; }
304 template <typename EvidenceLocationT = Aws::String>
305 void SetEvidenceLocation(EvidenceLocationT&& value) {
306 m_evidenceLocationHasBeenSet = true;
307 m_evidenceLocation = std::forward<EvidenceLocationT>(value);
308 }
309 template <typename EvidenceLocationT = Aws::String>
310 Environment& WithEvidenceLocation(EvidenceLocationT&& value) {
311 SetEvidenceLocation(std::forward<EvidenceLocationT>(value));
312 return *this;
313 }
315
317
320 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
321 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
322 template <typename TagsT = Aws::Vector<Tag>>
323 void SetTags(TagsT&& value) {
324 m_tagsHasBeenSet = true;
325 m_tags = std::forward<TagsT>(value);
326 }
327 template <typename TagsT = Aws::Vector<Tag>>
328 Environment& WithTags(TagsT&& value) {
329 SetTags(std::forward<TagsT>(value));
330 return *this;
331 }
332 template <typename TagsT = Tag>
333 Environment& AddTags(TagsT&& value) {
334 m_tagsHasBeenSet = true;
335 m_tags.emplace_back(std::forward<TagsT>(value));
336 return *this;
337 }
339
341
344 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
345 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
346 template <typename CreatedAtT = Aws::Utils::DateTime>
347 void SetCreatedAt(CreatedAtT&& value) {
348 m_createdAtHasBeenSet = true;
349 m_createdAt = std::forward<CreatedAtT>(value);
350 }
351 template <typename CreatedAtT = Aws::Utils::DateTime>
352 Environment& WithCreatedAt(CreatedAtT&& value) {
353 SetCreatedAt(std::forward<CreatedAtT>(value));
354 return *this;
355 }
357
359
362 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
363 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
364 template <typename UpdatedAtT = Aws::Utils::DateTime>
365 void SetUpdatedAt(UpdatedAtT&& value) {
366 m_updatedAtHasBeenSet = true;
367 m_updatedAt = std::forward<UpdatedAtT>(value);
368 }
369 template <typename UpdatedAtT = Aws::Utils::DateTime>
370 Environment& WithUpdatedAt(UpdatedAtT&& value) {
371 SetUpdatedAt(std::forward<UpdatedAtT>(value));
372 return *this;
373 }
375 private:
376 Aws::String m_environmentId;
377
378 Aws::String m_environmentName;
379
380 Aws::String m_environmentArn;
381
382 Aws::String m_description;
383
384 IdentityStoreInfo m_identityStore;
385
386 Aws::String m_domainPrefix;
387
388 Aws::String m_serviceRole;
389
390 Aws::String m_operatorRole;
391
392 Aws::String m_kmsKeyArn;
393
395
396 Aws::Vector<Aws::String> m_regions;
397
399
400 Aws::Vector<Aws::String> m_organizationalUnitIds;
401
402 Aws::String m_evidenceLocation;
403
404 Aws::Vector<Tag> m_tags;
405
406 Aws::Utils::DateTime m_createdAt{};
407
408 Aws::Utils::DateTime m_updatedAt{};
409 bool m_environmentIdHasBeenSet = false;
410 bool m_environmentNameHasBeenSet = false;
411 bool m_environmentArnHasBeenSet = false;
412 bool m_descriptionHasBeenSet = false;
413 bool m_identityStoreHasBeenSet = false;
414 bool m_domainPrefixHasBeenSet = false;
415 bool m_serviceRoleHasBeenSet = false;
416 bool m_operatorRoleHasBeenSet = false;
417 bool m_kmsKeyArnHasBeenSet = false;
418 bool m_statusHasBeenSet = false;
419 bool m_regionsHasBeenSet = false;
420 bool m_environmentScopeHasBeenSet = false;
421 bool m_organizationalUnitIdsHasBeenSet = false;
422 bool m_evidenceLocationHasBeenSet = false;
423 bool m_tagsHasBeenSet = false;
424 bool m_createdAtHasBeenSet = false;
425 bool m_updatedAtHasBeenSet = false;
426};
427
428} // namespace Model
429} // namespace Assurance
430} // namespace Aws
Environment & WithEnvironmentId(EnvironmentIdT &&value)
Definition Environment.h:54
Environment & WithEnvironmentName(EnvironmentNameT &&value)
Definition Environment.h:72
Environment & WithUpdatedAt(UpdatedAtT &&value)
Environment & WithTags(TagsT &&value)
Environment & WithDomainPrefix(DomainPrefixT &&value)
Environment & WithIdentityStore(IdentityStoreT &&value)
void SetOperatorRole(OperatorRoleT &&value)
const IdentityStoreInfo & GetIdentityStore() const
const Aws::Vector< Aws::String > & GetOrganizationalUnitIds() const
Environment & WithEnvironmentArn(EnvironmentArnT &&value)
Definition Environment.h:90
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Vector< Tag > & GetTags() const
EnvironmentStatus GetStatus() const
Environment & WithStatus(EnvironmentStatus value)
Environment & WithOperatorRole(OperatorRoleT &&value)
Environment & WithEvidenceLocation(EvidenceLocationT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
void SetEvidenceLocation(EvidenceLocationT &&value)
Environment & AddOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
const Aws::String & GetOperatorRole() const
const Aws::String & GetDescription() const
const Aws::String & GetEnvironmentName() const
Definition Environment.h:64
void SetStatus(EnvironmentStatus value)
AWS_ASSURANCE_API Environment()=default
AWS_ASSURANCE_API Environment(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetRegions(RegionsT &&value)
void SetDescription(DescriptionT &&value)
Environment & WithKmsKeyArn(KmsKeyArnT &&value)
const Aws::String & GetEnvironmentId() const
Definition Environment.h:46
EnvironmentScope GetEnvironmentScope() const
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Environment & WithCreatedAt(CreatedAtT &&value)
void SetDomainPrefix(DomainPrefixT &&value)
Environment & WithDescription(DescriptionT &&value)
void SetEnvironmentArn(EnvironmentArnT &&value)
Definition Environment.h:85
const Aws::String & GetServiceRole() const
void SetKmsKeyArn(KmsKeyArnT &&value)
void SetServiceRole(ServiceRoleT &&value)
Environment & WithRegions(RegionsT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetEnvironmentName(EnvironmentNameT &&value)
Definition Environment.h:67
void SetEnvironmentId(EnvironmentIdT &&value)
Definition Environment.h:49
Environment & WithEnvironmentScope(EnvironmentScope value)
const Aws::String & GetKmsKeyArn() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetIdentityStore(IdentityStoreT &&value)
const Aws::String & GetDomainPrefix() const
Environment & AddRegions(RegionsT &&value)
Environment & WithOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
Environment & AddTags(TagsT &&value)
Environment & WithServiceRole(ServiceRoleT &&value)
const Aws::String & GetEvidenceLocation() const
AWS_ASSURANCE_API Environment & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetEnvironmentArn() const
Definition Environment.h:82
void SetEnvironmentScope(EnvironmentScope value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector