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>
38 AWS_ASSURANCE_API
Environment(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_ASSURANCE_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
48 template <
typename EnvironmentIdT = Aws::String>
50 m_environmentIdHasBeenSet =
true;
51 m_environmentId = std::forward<EnvironmentIdT>(value);
53 template <
typename EnvironmentIdT = Aws::String>
66 template <
typename EnvironmentNameT = Aws::String>
68 m_environmentNameHasBeenSet =
true;
69 m_environmentName = std::forward<EnvironmentNameT>(value);
71 template <
typename EnvironmentNameT = Aws::String>
84 template <
typename EnvironmentArnT = Aws::String>
86 m_environmentArnHasBeenSet =
true;
87 m_environmentArn = std::forward<EnvironmentArnT>(value);
89 template <
typename EnvironmentArnT = Aws::String>
102 template <
typename DescriptionT = Aws::String>
104 m_descriptionHasBeenSet =
true;
105 m_description = std::forward<DescriptionT>(value);
107 template <
typename DescriptionT = Aws::String>
120 template <
typename IdentityStoreT = IdentityStoreInfo>
122 m_identityStoreHasBeenSet =
true;
123 m_identityStore = std::forward<IdentityStoreT>(value);
125 template <
typename IdentityStoreT = IdentityStoreInfo>
141 template <
typename DomainPrefixT = Aws::String>
143 m_domainPrefixHasBeenSet =
true;
144 m_domainPrefix = std::forward<DomainPrefixT>(value);
146 template <
typename DomainPrefixT = Aws::String>
162 template <
typename ServiceRoleT = Aws::String>
164 m_serviceRoleHasBeenSet =
true;
165 m_serviceRole = std::forward<ServiceRoleT>(value);
167 template <
typename ServiceRoleT = Aws::String>
182 template <
typename OperatorRoleT = Aws::String>
184 m_operatorRoleHasBeenSet =
true;
185 m_operatorRole = std::forward<OperatorRoleT>(value);
187 template <
typename OperatorRoleT = Aws::String>
201 template <
typename KmsKeyArnT = Aws::String>
203 m_kmsKeyArnHasBeenSet =
true;
204 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
206 template <
typename KmsKeyArnT = Aws::String>
220 m_statusHasBeenSet =
true;
237 template <
typename RegionsT = Aws::Vector<Aws::String>>
239 m_regionsHasBeenSet =
true;
240 m_regions = std::forward<RegionsT>(value);
242 template <
typename RegionsT = Aws::Vector<Aws::String>>
247 template <
typename RegionsT = Aws::String>
249 m_regionsHasBeenSet =
true;
250 m_regions.emplace_back(std::forward<RegionsT>(value));
262 m_environmentScopeHasBeenSet =
true;
263 m_environmentScope = value;
279 template <
typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
281 m_organizationalUnitIdsHasBeenSet =
true;
282 m_organizationalUnitIds = std::forward<OrganizationalUnitIdsT>(value);
284 template <
typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
289 template <
typename OrganizationalUnitIdsT = Aws::String>
291 m_organizationalUnitIdsHasBeenSet =
true;
292 m_organizationalUnitIds.emplace_back(std::forward<OrganizationalUnitIdsT>(value));
304 template <
typename Ev
idenceLocationT = Aws::String>
306 m_evidenceLocationHasBeenSet =
true;
307 m_evidenceLocation = std::forward<EvidenceLocationT>(value);
309 template <
typename Ev
idenceLocationT = Aws::String>
322 template <
typename TagsT = Aws::Vector<Tag>>
324 m_tagsHasBeenSet =
true;
325 m_tags = std::forward<TagsT>(value);
327 template <
typename TagsT = Aws::Vector<Tag>>
329 SetTags(std::forward<TagsT>(value));
332 template <
typename TagsT = Tag>
334 m_tagsHasBeenSet =
true;
335 m_tags.emplace_back(std::forward<TagsT>(value));
346 template <
typename CreatedAtT = Aws::Utils::DateTime>
348 m_createdAtHasBeenSet =
true;
349 m_createdAt = std::forward<CreatedAtT>(value);
351 template <
typename CreatedAtT = Aws::Utils::DateTime>
364 template <
typename UpdatedAtT = Aws::Utils::DateTime>
366 m_updatedAtHasBeenSet =
true;
367 m_updatedAt = std::forward<UpdatedAtT>(value);
369 template <
typename UpdatedAtT = Aws::Utils::DateTime>
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;
bool DomainPrefixHasBeenSet() const
Environment & WithEnvironmentId(EnvironmentIdT &&value)
bool CreatedAtHasBeenSet() const
Environment & WithEnvironmentName(EnvironmentNameT &&value)
Environment & WithUpdatedAt(UpdatedAtT &&value)
Environment & WithTags(TagsT &&value)
Environment & WithDomainPrefix(DomainPrefixT &&value)
Environment & WithIdentityStore(IdentityStoreT &&value)
bool DescriptionHasBeenSet() const
void SetOperatorRole(OperatorRoleT &&value)
const IdentityStoreInfo & GetIdentityStore() const
const Aws::Vector< Aws::String > & GetOrganizationalUnitIds() const
Environment & WithEnvironmentArn(EnvironmentArnT &&value)
bool OrganizationalUnitIdsHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Vector< Tag > & GetTags() const
bool ServiceRoleHasBeenSet() const
EnvironmentStatus GetStatus() const
bool KmsKeyArnHasBeenSet() const
Environment & WithStatus(EnvironmentStatus value)
Environment & WithOperatorRole(OperatorRoleT &&value)
Environment & WithEvidenceLocation(EvidenceLocationT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
void SetEvidenceLocation(EvidenceLocationT &&value)
bool EnvironmentArnHasBeenSet() const
Environment & AddOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
const Aws::String & GetOperatorRole() const
const Aws::String & GetDescription() const
void SetTags(TagsT &&value)
const Aws::String & GetEnvironmentName() const
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)
bool UpdatedAtHasBeenSet() const
Environment & WithKmsKeyArn(KmsKeyArnT &&value)
const Aws::String & GetEnvironmentId() const
EnvironmentScope GetEnvironmentScope() const
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool OperatorRoleHasBeenSet() const
Environment & WithCreatedAt(CreatedAtT &&value)
void SetDomainPrefix(DomainPrefixT &&value)
Environment & WithDescription(DescriptionT &&value)
void SetEnvironmentArn(EnvironmentArnT &&value)
const Aws::String & GetServiceRole() const
void SetKmsKeyArn(KmsKeyArnT &&value)
bool RegionsHasBeenSet() const
void SetServiceRole(ServiceRoleT &&value)
Environment & WithRegions(RegionsT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetEnvironmentName(EnvironmentNameT &&value)
void SetEnvironmentId(EnvironmentIdT &&value)
Environment & WithEnvironmentScope(EnvironmentScope value)
const Aws::String & GetKmsKeyArn() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetIdentityStore(IdentityStoreT &&value)
const Aws::String & GetDomainPrefix() const
bool EnvironmentNameHasBeenSet() const
Environment & AddRegions(RegionsT &&value)
Environment & WithOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
bool TagsHasBeenSet() const
bool IdentityStoreHasBeenSet() const
Environment & AddTags(TagsT &&value)
bool StatusHasBeenSet() const
Environment & WithServiceRole(ServiceRoleT &&value)
const Aws::String & GetEvidenceLocation() const
AWS_ASSURANCE_API Environment & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool EnvironmentScopeHasBeenSet() const
const Aws::String & GetEnvironmentArn() const
bool EvidenceLocationHasBeenSet() const
void SetEnvironmentScope(EnvironmentScope value)
bool EnvironmentIdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector