/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AuditManager { namespace Model { /** *

A metadata object that's associated with an assessment in Audit Manager. *

See Also:

AWS * API Reference

*/ class AssessmentMetadataItem { public: AWS_AUDITMANAGER_API AssessmentMetadataItem(); AWS_AUDITMANAGER_API AssessmentMetadataItem(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API AssessmentMetadataItem& 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 AssessmentMetadataItem& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the assessment.

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

The name of the assessment.

*/ inline AssessmentMetadataItem& 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 AssessmentMetadataItem& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the assessment.

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

The unique identifier for the assessment.

*/ inline AssessmentMetadataItem& WithId(const char* value) { SetId(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 AssessmentMetadataItem& 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 AssessmentMetadataItem& 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 AssessmentMetadataItem& WithComplianceType(const char* value) { SetComplianceType(value); return *this;} /** *

The current status of the assessment.

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

The current status of the assessment.

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

The current status of the assessment.

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

The current status of the assessment.

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

The current status of the assessment.

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

The current status of the assessment.

*/ inline AssessmentMetadataItem& WithStatus(AssessmentStatus&& value) { SetStatus(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 AssessmentMetadataItem& WithRoles(const Aws::Vector& value) { SetRoles(value); return *this;} /** *

The roles that are associated with the assessment.

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

The roles that are associated with the assessment.

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

The roles that are associated with the assessment.

*/ inline AssessmentMetadataItem& 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 AssessmentMetadataItem& WithDelegations(const Aws::Vector& value) { SetDelegations(value); return *this;} /** *

The delegations that are associated with the assessment.

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

The delegations that are associated with the assessment.

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

The delegations that are associated with the assessment.

*/ inline AssessmentMetadataItem& 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 AssessmentMetadataItem& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

Specifies when the assessment was created.

*/ inline AssessmentMetadataItem& 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 AssessmentMetadataItem& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;} /** *

The time of the most recent update.

*/ inline AssessmentMetadataItem& 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_complianceType; bool m_complianceTypeHasBeenSet = false; AssessmentStatus m_status; bool m_statusHasBeenSet = 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