/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A metadata object that's associated with an assessment in Audit Manager.
* See Also:
AWS
* API Reference
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::VectorThe 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::VectorThe roles that are associated with the assessment.
*/ inline void SetRoles(Aws::VectorThe roles that are associated with the assessment.
*/ inline AssessmentMetadataItem& WithRoles(const Aws::VectorThe roles that are associated with the assessment.
*/ inline AssessmentMetadataItem& WithRoles(Aws::VectorThe 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::VectorThe 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::VectorThe delegations that are associated with the assessment.
*/ inline void SetDelegations(Aws::VectorThe delegations that are associated with the assessment.
*/ inline AssessmentMetadataItem& WithDelegations(const Aws::VectorThe delegations that are associated with the assessment.
*/ inline AssessmentMetadataItem& WithDelegations(Aws::VectorThe 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