7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
12#include <aws/resiliencehubv2/model/Achievability.h>
13#include <aws/resiliencehubv2/model/AssessmentCost.h>
14#include <aws/resiliencehubv2/model/AssessmentStatus.h>
15#include <aws/resiliencehubv2/model/AssociatedSystem.h>
16#include <aws/resiliencehubv2/model/DependencyDiscoveryConfig.h>
17#include <aws/resiliencehubv2/model/EffectivePolicyValues.h>
18#include <aws/resiliencehubv2/model/PermissionModel.h>
19#include <aws/resiliencehubv2/model/ResourceDiscoveryStatus.h>
20#include <aws/resiliencehubv2/model/ServiceReportConfiguration.h>
31namespace resiliencehubv2 {
42 AWS_RESILIENCEHUBV2_API
Service() =
default;
51 template <
typename ServiceArnT = Aws::String>
53 m_serviceArnHasBeenSet =
true;
54 m_serviceArn = std::forward<ServiceArnT>(value);
56 template <
typename ServiceArnT = Aws::String>
67 template <
typename NameT = Aws::String>
69 m_nameHasBeenSet =
true;
70 m_name = std::forward<NameT>(value);
72 template <
typename NameT = Aws::String>
74 SetName(std::forward<NameT>(value));
83 template <
typename DescriptionT = Aws::String>
85 m_descriptionHasBeenSet =
true;
86 m_description = std::forward<DescriptionT>(value);
88 template <
typename DescriptionT = Aws::String>
101 template <
typename AssociatedSystemsT = Aws::Vector<AssociatedSystem>>
103 m_associatedSystemsHasBeenSet =
true;
104 m_associatedSystems = std::forward<AssociatedSystemsT>(value);
106 template <
typename AssociatedSystemsT = Aws::Vector<AssociatedSystem>>
111 template <
typename AssociatedSystemsT = AssociatedSystem>
113 m_associatedSystemsHasBeenSet =
true;
114 m_associatedSystems.emplace_back(std::forward<AssociatedSystemsT>(value));
123 template <
typename PolicyArnT = Aws::String>
125 m_policyArnHasBeenSet =
true;
126 m_policyArn = std::forward<PolicyArnT>(value);
128 template <
typename PolicyArnT = Aws::String>
141 template <
typename RegionsT = Aws::Vector<Aws::String>>
143 m_regionsHasBeenSet =
true;
144 m_regions = std::forward<RegionsT>(value);
146 template <
typename RegionsT = Aws::Vector<Aws::String>>
151 template <
typename RegionsT = Aws::String>
153 m_regionsHasBeenSet =
true;
154 m_regions.emplace_back(std::forward<RegionsT>(value));
165 template <
typename PermissionModelT = PermissionModel>
167 m_permissionModelHasBeenSet =
true;
168 m_permissionModel = std::forward<PermissionModelT>(value);
170 template <
typename PermissionModelT = PermissionModel>
183 template <
typename DependencyDiscoveryT = DependencyDiscoveryConfig>
185 m_dependencyDiscoveryHasBeenSet =
true;
186 m_dependencyDiscovery = std::forward<DependencyDiscoveryT>(value);
188 template <
typename DependencyDiscoveryT = DependencyDiscoveryConfig>
201 template <
typename EffectivePolicyValuesT = EffectivePolicyValues>
203 m_effectivePolicyValuesHasBeenSet =
true;
204 m_effectivePolicyValues = std::forward<EffectivePolicyValuesT>(value);
206 template <
typename EffectivePolicyValuesT = EffectivePolicyValues>
219 template <
typename AchievabilityT = Achievability>
221 m_achievabilityHasBeenSet =
true;
222 m_achievability = std::forward<AchievabilityT>(value);
224 template <
typename AchievabilityT = Achievability>
235 template <
typename ReportConfigurationT = ServiceReportConfiguration>
237 m_reportConfigurationHasBeenSet =
true;
238 m_reportConfiguration = std::forward<ReportConfigurationT>(value);
240 template <
typename ReportConfigurationT = ServiceReportConfiguration>
251 template <
typename KmsKeyIdT = Aws::String>
253 m_kmsKeyIdHasBeenSet =
true;
254 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
256 template <
typename KmsKeyIdT = Aws::String>
267 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
269 m_tagsHasBeenSet =
true;
270 m_tags = std::forward<TagsT>(value);
272 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
274 SetTags(std::forward<TagsT>(value));
277 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
279 m_tagsHasBeenSet =
true;
280 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
291 template <
typename EstimatedAssessmentCostT = AssessmentCost>
293 m_estimatedAssessmentCostHasBeenSet =
true;
294 m_estimatedAssessmentCost = std::forward<EstimatedAssessmentCostT>(value);
296 template <
typename EstimatedAssessmentCostT = AssessmentCost>
309 template <
typename ResourceDiscoveryT = ResourceDiscoveryStatus>
311 m_resourceDiscoveryHasBeenSet =
true;
312 m_resourceDiscovery = std::forward<ResourceDiscoveryT>(value);
314 template <
typename ResourceDiscoveryT = ResourceDiscoveryStatus>
328 m_assessmentStatusHasBeenSet =
true;
329 m_assessmentStatus = value;
344 m_rerunAssessmentHasBeenSet =
true;
345 m_rerunAssessment = value;
360 m_openFindingsCountHasBeenSet =
true;
361 m_openFindingsCount = value;
376 m_resolvedFindingsCountHasBeenSet =
true;
377 m_resolvedFindingsCount = value;
391 template <
typename OrganizationIdT = Aws::String>
393 m_organizationIdHasBeenSet =
true;
394 m_organizationId = std::forward<OrganizationIdT>(value);
396 template <
typename OrganizationIdT = Aws::String>
409 template <
typename OuIdT = Aws::String>
411 m_ouIdHasBeenSet =
true;
412 m_ouId = std::forward<OuIdT>(value);
414 template <
typename OuIdT = Aws::String>
416 SetOuId(std::forward<OuIdT>(value));
427 template <
typename AccountIdT = Aws::String>
429 m_accountIdHasBeenSet =
true;
430 m_accountId = std::forward<AccountIdT>(value);
432 template <
typename AccountIdT = Aws::String>
445 template <
typename CreatedAtT = Aws::Utils::DateTime>
447 m_createdAtHasBeenSet =
true;
448 m_createdAt = std::forward<CreatedAtT>(value);
450 template <
typename CreatedAtT = Aws::Utils::DateTime>
463 template <
typename UpdatedAtT = Aws::Utils::DateTime>
465 m_updatedAtHasBeenSet =
true;
466 m_updatedAt = std::forward<UpdatedAtT>(value);
468 template <
typename UpdatedAtT = Aws::Utils::DateTime>
507 bool m_rerunAssessment{
false};
509 int m_openFindingsCount{0};
511 int m_resolvedFindingsCount{0};
522 bool m_serviceArnHasBeenSet =
false;
523 bool m_nameHasBeenSet =
false;
524 bool m_descriptionHasBeenSet =
false;
525 bool m_associatedSystemsHasBeenSet =
false;
526 bool m_policyArnHasBeenSet =
false;
527 bool m_regionsHasBeenSet =
false;
528 bool m_permissionModelHasBeenSet =
false;
529 bool m_dependencyDiscoveryHasBeenSet =
false;
530 bool m_effectivePolicyValuesHasBeenSet =
false;
531 bool m_achievabilityHasBeenSet =
false;
532 bool m_reportConfigurationHasBeenSet =
false;
533 bool m_kmsKeyIdHasBeenSet =
false;
534 bool m_tagsHasBeenSet =
false;
535 bool m_estimatedAssessmentCostHasBeenSet =
false;
536 bool m_resourceDiscoveryHasBeenSet =
false;
537 bool m_assessmentStatusHasBeenSet =
false;
538 bool m_rerunAssessmentHasBeenSet =
false;
539 bool m_openFindingsCountHasBeenSet =
false;
540 bool m_resolvedFindingsCountHasBeenSet =
false;
541 bool m_organizationIdHasBeenSet =
false;
542 bool m_ouIdHasBeenSet =
false;
543 bool m_accountIdHasBeenSet =
false;
544 bool m_createdAtHasBeenSet =
false;
545 bool m_updatedAtHasBeenSet =
false;
bool OuIdHasBeenSet() const
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
Service & WithKmsKeyId(KmsKeyIdT &&value)
Service & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetOuId() const
bool EstimatedAssessmentCostHasBeenSet() const
Service & WithTags(TagsT &&value)
const Aws::String & GetDescription() const
void SetAchievability(AchievabilityT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
int GetOpenFindingsCount() const
Service & WithRegions(RegionsT &&value)
void SetOuId(OuIdT &&value)
Service & WithName(NameT &&value)
bool NameHasBeenSet() const
Service & WithAssessmentStatus(AssessmentStatus value)
void SetEstimatedAssessmentCost(EstimatedAssessmentCostT &&value)
const Aws::String & GetKmsKeyId() const
Service & WithAchievability(AchievabilityT &&value)
Service & WithEstimatedAssessmentCost(EstimatedAssessmentCostT &&value)
Service & AddRegions(RegionsT &&value)
void SetAccountId(AccountIdT &&value)
Service & WithServiceArn(ServiceArnT &&value)
bool KmsKeyIdHasBeenSet() const
bool AccountIdHasBeenSet() const
bool ResourceDiscoveryHasBeenSet() const
const ResourceDiscoveryStatus & GetResourceDiscovery() const
Service & WithReportConfiguration(ReportConfigurationT &&value)
Service & AddTags(TagsKeyT &&key, TagsValueT &&value)
Service & AddAssociatedSystems(AssociatedSystemsT &&value)
bool OpenFindingsCountHasBeenSet() const
void SetOrganizationId(OrganizationIdT &&value)
AWS_RESILIENCEHUBV2_API Service()=default
void SetCreatedAt(CreatedAtT &&value)
AssessmentStatus GetAssessmentStatus() const
Service & WithAssociatedSystems(AssociatedSystemsT &&value)
const Aws::String & GetOrganizationId() const
AWS_RESILIENCEHUBV2_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
Service & WithUpdatedAt(UpdatedAtT &&value)
bool PolicyArnHasBeenSet() const
void SetRerunAssessment(bool value)
bool UpdatedAtHasBeenSet() const
Service & WithResolvedFindingsCount(int value)
bool GetRerunAssessment() const
const AssessmentCost & GetEstimatedAssessmentCost() const
bool ResolvedFindingsCountHasBeenSet() const
const Aws::Vector< AssociatedSystem > & GetAssociatedSystems() const
Service & WithOuId(OuIdT &&value)
void SetEffectivePolicyValues(EffectivePolicyValuesT &&value)
bool DescriptionHasBeenSet() const
const ServiceReportConfiguration & GetReportConfiguration() const
const Aws::Vector< Aws::String > & GetRegions() const
Service & WithDependencyDiscovery(DependencyDiscoveryT &&value)
bool RegionsHasBeenSet() const
Service & WithOrganizationId(OrganizationIdT &&value)
bool ServiceArnHasBeenSet() const
bool CreatedAtHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetRegions(RegionsT &&value)
Service & WithPermissionModel(PermissionModelT &&value)
Service & WithAccountId(AccountIdT &&value)
void SetPermissionModel(PermissionModelT &&value)
bool TagsHasBeenSet() const
void SetOpenFindingsCount(int value)
void SetName(NameT &&value)
bool RerunAssessmentHasBeenSet() const
const Aws::String & GetPolicyArn() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const PermissionModel & GetPermissionModel() const
const Aws::String & GetServiceArn() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetAssessmentStatus(AssessmentStatus value)
Service & WithPolicyArn(PolicyArnT &&value)
void SetDescription(DescriptionT &&value)
Service & WithResourceDiscovery(ResourceDiscoveryT &&value)
const Achievability & GetAchievability() const
void SetReportConfiguration(ReportConfigurationT &&value)
void SetTags(TagsT &&value)
int GetResolvedFindingsCount() const
void SetAssociatedSystems(AssociatedSystemsT &&value)
void SetResolvedFindingsCount(int value)
bool ReportConfigurationHasBeenSet() const
void SetResourceDiscovery(ResourceDiscoveryT &&value)
Service & WithDescription(DescriptionT &&value)
void SetPolicyArn(PolicyArnT &&value)
bool PermissionModelHasBeenSet() const
const Aws::String & GetAccountId() const
Service & WithOpenFindingsCount(int value)
Service & WithRerunAssessment(bool value)
bool AssociatedSystemsHasBeenSet() const
const Aws::String & GetName() const
Service & WithEffectivePolicyValues(EffectivePolicyValuesT &&value)
bool OrganizationIdHasBeenSet() const
const DependencyDiscoveryConfig & GetDependencyDiscovery() const
AWS_RESILIENCEHUBV2_API Service(Aws::Utils::Json::JsonView jsonValue)
void SetDependencyDiscovery(DependencyDiscoveryT &&value)
void SetServiceArn(ServiceArnT &&value)
bool DependencyDiscoveryHasBeenSet() const
void SetKmsKeyId(KmsKeyIdT &&value)
bool AchievabilityHasBeenSet() const
bool AssessmentStatusHasBeenSet() const
const EffectivePolicyValues & GetEffectivePolicyValues() const
bool EffectivePolicyValuesHasBeenSet() 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
Aws::Utils::Json::JsonValue JsonValue