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

The control entity that represents a standard control or a custom control in * an Audit Manager assessment.

See Also:

AWS * API Reference

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

The identifier for the control.

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

The identifier for the control.

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

The identifier for the control.

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

The identifier for the control.

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

The identifier for the control.

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

The identifier for the control.

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

The identifier for the control.

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

The identifier for the control.

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

The name of the control.

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

The name of the control.

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

The name of the control.

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

The name of the control.

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

The name of the control.

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

The name of the control.

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

The name of the control.

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

The name of the control.

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

The description of the control.

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

The description of the control.

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

The description of the control.

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

The description of the control.

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

The description of the control.

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

The description of the control.

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

The description of the control.

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

The description of the control.

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

The status of the control.

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

The status of the control.

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

The status of the control.

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

The status of the control.

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

The status of the control.

*/ inline AssessmentControl& WithStatus(const ControlStatus& value) { SetStatus(value); return *this;} /** *

The status of the control.

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

The response of the control.

*/ inline const ControlResponse& GetResponse() const{ return m_response; } /** *

The response of the control.

*/ inline bool ResponseHasBeenSet() const { return m_responseHasBeenSet; } /** *

The response of the control.

*/ inline void SetResponse(const ControlResponse& value) { m_responseHasBeenSet = true; m_response = value; } /** *

The response of the control.

*/ inline void SetResponse(ControlResponse&& value) { m_responseHasBeenSet = true; m_response = std::move(value); } /** *

The response of the control.

*/ inline AssessmentControl& WithResponse(const ControlResponse& value) { SetResponse(value); return *this;} /** *

The response of the control.

*/ inline AssessmentControl& WithResponse(ControlResponse&& value) { SetResponse(std::move(value)); return *this;} /** *

The list of comments that's attached to the control.

*/ inline const Aws::Vector& GetComments() const{ return m_comments; } /** *

The list of comments that's attached to the control.

*/ inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; } /** *

The list of comments that's attached to the control.

*/ inline void SetComments(const Aws::Vector& value) { m_commentsHasBeenSet = true; m_comments = value; } /** *

The list of comments that's attached to the control.

*/ inline void SetComments(Aws::Vector&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); } /** *

The list of comments that's attached to the control.

*/ inline AssessmentControl& WithComments(const Aws::Vector& value) { SetComments(value); return *this;} /** *

The list of comments that's attached to the control.

*/ inline AssessmentControl& WithComments(Aws::Vector&& value) { SetComments(std::move(value)); return *this;} /** *

The list of comments that's attached to the control.

*/ inline AssessmentControl& AddComments(const ControlComment& value) { m_commentsHasBeenSet = true; m_comments.push_back(value); return *this; } /** *

The list of comments that's attached to the control.

*/ inline AssessmentControl& AddComments(ControlComment&& value) { m_commentsHasBeenSet = true; m_comments.push_back(std::move(value)); return *this; } /** *

The list of data sources for the evidence.

*/ inline const Aws::Vector& GetEvidenceSources() const{ return m_evidenceSources; } /** *

The list of data sources for the evidence.

*/ inline bool EvidenceSourcesHasBeenSet() const { return m_evidenceSourcesHasBeenSet; } /** *

The list of data sources for the evidence.

*/ inline void SetEvidenceSources(const Aws::Vector& value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources = value; } /** *

The list of data sources for the evidence.

*/ inline void SetEvidenceSources(Aws::Vector&& value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources = std::move(value); } /** *

The list of data sources for the evidence.

*/ inline AssessmentControl& WithEvidenceSources(const Aws::Vector& value) { SetEvidenceSources(value); return *this;} /** *

The list of data sources for the evidence.

*/ inline AssessmentControl& WithEvidenceSources(Aws::Vector&& value) { SetEvidenceSources(std::move(value)); return *this;} /** *

The list of data sources for the evidence.

*/ inline AssessmentControl& AddEvidenceSources(const Aws::String& value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources.push_back(value); return *this; } /** *

The list of data sources for the evidence.

*/ inline AssessmentControl& AddEvidenceSources(Aws::String&& value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources.push_back(std::move(value)); return *this; } /** *

The list of data sources for the evidence.

*/ inline AssessmentControl& AddEvidenceSources(const char* value) { m_evidenceSourcesHasBeenSet = true; m_evidenceSources.push_back(value); return *this; } /** *

The amount of evidence that's collected for the control.

*/ inline int GetEvidenceCount() const{ return m_evidenceCount; } /** *

The amount of evidence that's collected for the control.

*/ inline bool EvidenceCountHasBeenSet() const { return m_evidenceCountHasBeenSet; } /** *

The amount of evidence that's collected for the control.

*/ inline void SetEvidenceCount(int value) { m_evidenceCountHasBeenSet = true; m_evidenceCount = value; } /** *

The amount of evidence that's collected for the control.

*/ inline AssessmentControl& WithEvidenceCount(int value) { SetEvidenceCount(value); return *this;} /** *

The amount of evidence in the assessment report.

*/ inline int GetAssessmentReportEvidenceCount() const{ return m_assessmentReportEvidenceCount; } /** *

The amount of evidence in the assessment report.

*/ inline bool AssessmentReportEvidenceCountHasBeenSet() const { return m_assessmentReportEvidenceCountHasBeenSet; } /** *

The amount of evidence in the assessment report.

*/ inline void SetAssessmentReportEvidenceCount(int value) { m_assessmentReportEvidenceCountHasBeenSet = true; m_assessmentReportEvidenceCount = value; } /** *

The amount of evidence in the assessment report.

*/ inline AssessmentControl& WithAssessmentReportEvidenceCount(int value) { SetAssessmentReportEvidenceCount(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ControlStatus m_status; bool m_statusHasBeenSet = false; ControlResponse m_response; bool m_responseHasBeenSet = false; Aws::Vector m_comments; bool m_commentsHasBeenSet = false; Aws::Vector m_evidenceSources; bool m_evidenceSourcesHasBeenSet = false; int m_evidenceCount; bool m_evidenceCountHasBeenSet = false; int m_assessmentReportEvidenceCount; bool m_assessmentReportEvidenceCountHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws