/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The control entity that represents a standard control or a custom control in
* an Audit Manager assessment. See Also:
AWS
* API Reference
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::VectorThe 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::VectorThe list of comments that's attached to the control.
*/ inline void SetComments(Aws::VectorThe list of comments that's attached to the control.
*/ inline AssessmentControl& WithComments(const Aws::VectorThe list of comments that's attached to the control.
*/ inline AssessmentControl& WithComments(Aws::VectorThe 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::VectorThe 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::VectorThe list of data sources for the evidence.
*/ inline void SetEvidenceSources(Aws::VectorThe list of data sources for the evidence.
*/ inline AssessmentControl& WithEvidenceSources(const Aws::VectorThe list of data sources for the evidence.
*/ inline AssessmentControl& WithEvidenceSources(Aws::VectorThe 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