/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AuditManager { namespace Model { /** *

The metadata that's associated with the specified assessment.

See * Also:

AWS * API Reference

*/ class AssessmentMetadata { public: AWS_AUDITMANAGER_API AssessmentMetadata(); AWS_AUDITMANAGER_API AssessmentMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API AssessmentMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the assessment.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the assessment.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the assessment.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the assessment.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the assessment.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the assessment.

*/ inline AssessmentMetadata& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the assessment.

*/ inline AssessmentMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the assessment.

*/ inline AssessmentMetadata& WithName(const char* value) { SetName(value); return *this;} /** *

The unique identifier for the assessment.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the assessment.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the assessment.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier for the assessment.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier for the assessment.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier for the assessment.

*/ inline AssessmentMetadata& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the assessment.

*/ inline AssessmentMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the assessment.

*/ inline AssessmentMetadata& WithId(const char* value) { SetId(value); return *this;} /** *

The description of the assessment.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the assessment.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the assessment.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the assessment.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the assessment.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the assessment.

*/ inline AssessmentMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the assessment.

*/ inline AssessmentMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the assessment.

*/ inline AssessmentMetadata& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the compliance standard that's related to the assessment, such * as PCI-DSS.

*/ inline const Aws::String& GetComplianceType() const{ return m_complianceType; } /** *

The name of the compliance standard that's related to the assessment, such * as PCI-DSS.

*/ inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; } /** *

The name of the compliance standard that's related to the assessment, such * as PCI-DSS.

*/ inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; } /** *

The name of the compliance standard that's related to the assessment, such * as PCI-DSS.

*/ inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); } /** *

The name of the compliance standard that's related to the assessment, such * as PCI-DSS.

*/ inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); } /** *

The name of the compliance standard that's related to the assessment, such * as PCI-DSS.

*/ inline AssessmentMetadata& WithComplianceType(const Aws::String& value) { SetComplianceType(value); return *this;} /** *

The name of the compliance standard that's related to the assessment, such * as PCI-DSS.

*/ inline AssessmentMetadata& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;} /** *

The name of the compliance standard that's related to the assessment, such * as PCI-DSS.

*/ inline AssessmentMetadata& WithComplianceType(const char* value) { SetComplianceType(value); return *this;} /** *

The overall status of the assessment.

*/ inline const AssessmentStatus& GetStatus() const{ return m_status; } /** *

The overall status of the assessment.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The overall status of the assessment.

*/ inline void SetStatus(const AssessmentStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The overall status of the assessment.

*/ inline void SetStatus(AssessmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The overall status of the assessment.

*/ inline AssessmentMetadata& WithStatus(const AssessmentStatus& value) { SetStatus(value); return *this;} /** *

The overall status of the assessment.

*/ inline AssessmentMetadata& WithStatus(AssessmentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The destination that evidence reports are stored in for the assessment.

*/ inline const AssessmentReportsDestination& GetAssessmentReportsDestination() const{ return m_assessmentReportsDestination; } /** *

The destination that evidence reports are stored in for the assessment.

*/ inline bool AssessmentReportsDestinationHasBeenSet() const { return m_assessmentReportsDestinationHasBeenSet; } /** *

The destination that evidence reports are stored in for the assessment.

*/ inline void SetAssessmentReportsDestination(const AssessmentReportsDestination& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = value; } /** *

The destination that evidence reports are stored in for the assessment.

*/ inline void SetAssessmentReportsDestination(AssessmentReportsDestination&& value) { m_assessmentReportsDestinationHasBeenSet = true; m_assessmentReportsDestination = std::move(value); } /** *

The destination that evidence reports are stored in for the assessment.

*/ inline AssessmentMetadata& WithAssessmentReportsDestination(const AssessmentReportsDestination& value) { SetAssessmentReportsDestination(value); return *this;} /** *

The destination that evidence reports are stored in for the assessment.

*/ inline AssessmentMetadata& WithAssessmentReportsDestination(AssessmentReportsDestination&& value) { SetAssessmentReportsDestination(std::move(value)); return *this;} /** *

The wrapper of Amazon Web Services accounts and services that are in scope * for the assessment.

*/ inline const Scope& GetScope() const{ return m_scope; } /** *

The wrapper of Amazon Web Services accounts and services that are in scope * for the assessment.

*/ inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } /** *

The wrapper of Amazon Web Services accounts and services that are in scope * for the assessment.

*/ inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; } /** *

The wrapper of Amazon Web Services accounts and services that are in scope * for the assessment.

*/ inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } /** *

The wrapper of Amazon Web Services accounts and services that are in scope * for the assessment.

*/ inline AssessmentMetadata& WithScope(const Scope& value) { SetScope(value); return *this;} /** *

The wrapper of Amazon Web Services accounts and services that are in scope * for the assessment.

*/ inline AssessmentMetadata& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;} /** *

The roles that are associated with the assessment.

*/ inline const Aws::Vector& GetRoles() const{ return m_roles; } /** *

The roles that are associated with the assessment.

*/ inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; } /** *

The roles that are associated with the assessment.

*/ inline void SetRoles(const Aws::Vector& value) { m_rolesHasBeenSet = true; m_roles = value; } /** *

The roles that are associated with the assessment.

*/ inline void SetRoles(Aws::Vector&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); } /** *

The roles that are associated with the assessment.

*/ inline AssessmentMetadata& WithRoles(const Aws::Vector& value) { SetRoles(value); return *this;} /** *

The roles that are associated with the assessment.

*/ inline AssessmentMetadata& WithRoles(Aws::Vector&& value) { SetRoles(std::move(value)); return *this;} /** *

The roles that are associated with the assessment.

*/ inline AssessmentMetadata& AddRoles(const Role& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; } /** *

The roles that are associated with the assessment.

*/ inline AssessmentMetadata& AddRoles(Role&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; } /** *

The delegations that are associated with the assessment.

*/ inline const Aws::Vector& GetDelegations() const{ return m_delegations; } /** *

The delegations that are associated with the assessment.

*/ inline bool DelegationsHasBeenSet() const { return m_delegationsHasBeenSet; } /** *

The delegations that are associated with the assessment.

*/ inline void SetDelegations(const Aws::Vector& value) { m_delegationsHasBeenSet = true; m_delegations = value; } /** *

The delegations that are associated with the assessment.

*/ inline void SetDelegations(Aws::Vector&& value) { m_delegationsHasBeenSet = true; m_delegations = std::move(value); } /** *

The delegations that are associated with the assessment.

*/ inline AssessmentMetadata& WithDelegations(const Aws::Vector& value) { SetDelegations(value); return *this;} /** *

The delegations that are associated with the assessment.

*/ inline AssessmentMetadata& WithDelegations(Aws::Vector&& value) { SetDelegations(std::move(value)); return *this;} /** *

The delegations that are associated with the assessment.

*/ inline AssessmentMetadata& AddDelegations(const Delegation& value) { m_delegationsHasBeenSet = true; m_delegations.push_back(value); return *this; } /** *

The delegations that are associated with the assessment.

*/ inline AssessmentMetadata& AddDelegations(Delegation&& value) { m_delegationsHasBeenSet = true; m_delegations.push_back(std::move(value)); return *this; } /** *

Specifies when the assessment was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

Specifies when the assessment was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

Specifies when the assessment was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

Specifies when the assessment was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

Specifies when the assessment was created.

*/ inline AssessmentMetadata& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

Specifies when the assessment was created.

*/ inline AssessmentMetadata& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The time of the most recent update.

*/ inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; } /** *

The time of the most recent update.

*/ inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; } /** *

The time of the most recent update.

*/ inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; } /** *

The time of the most recent update.

*/ inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); } /** *

The time of the most recent update.

*/ inline AssessmentMetadata& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;} /** *

The time of the most recent update.

*/ inline AssessmentMetadata& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_complianceType; bool m_complianceTypeHasBeenSet = false; AssessmentStatus m_status; bool m_statusHasBeenSet = false; AssessmentReportsDestination m_assessmentReportsDestination; bool m_assessmentReportsDestinationHasBeenSet = false; Scope m_scope; bool m_scopeHasBeenSet = false; Aws::Vector m_roles; bool m_rolesHasBeenSet = false; Aws::Vector m_delegations; bool m_delegationsHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdated; bool m_lastUpdatedHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws