/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A control in Audit Manager. See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the control.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the control.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the control.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the control.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the control.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the control.
*/ inline Control& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the control.
*/ inline Control& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the control.
*/ inline Control& WithArn(const char* value) { SetArn(value); return *this;} /** *The unique identifier for the control.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The unique identifier for the control.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The unique identifier for the control.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The unique identifier for the control.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The unique identifier for the control.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The unique identifier for the control.
*/ inline Control& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The unique identifier for the control.
*/ inline Control& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The unique identifier for the control.
*/ inline Control& WithId(const char* value) { SetId(value); return *this;} /** *Specifies whether the control is a standard control or a custom control.
*/ inline const ControlType& GetType() const{ return m_type; } /** *Specifies whether the control is a standard control or a custom control.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *Specifies whether the control is a standard control or a custom control.
*/ inline void SetType(const ControlType& value) { m_typeHasBeenSet = true; m_type = value; } /** *Specifies whether the control is a standard control or a custom control.
*/ inline void SetType(ControlType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *Specifies whether the control is a standard control or a custom control.
*/ inline Control& WithType(const ControlType& value) { SetType(value); return *this;} /** *Specifies whether the control is a standard control or a custom control.
*/ inline Control& WithType(ControlType&& value) { SetType(std::move(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 Control& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the control.
*/ inline Control& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the control.
*/ inline Control& 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 Control& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the control.
*/ inline Control& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the control.
*/ inline Control& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The steps that you should follow to determine if the control has been * satisfied.
*/ inline const Aws::String& GetTestingInformation() const{ return m_testingInformation; } /** *The steps that you should follow to determine if the control has been * satisfied.
*/ inline bool TestingInformationHasBeenSet() const { return m_testingInformationHasBeenSet; } /** *The steps that you should follow to determine if the control has been * satisfied.
*/ inline void SetTestingInformation(const Aws::String& value) { m_testingInformationHasBeenSet = true; m_testingInformation = value; } /** *The steps that you should follow to determine if the control has been * satisfied.
*/ inline void SetTestingInformation(Aws::String&& value) { m_testingInformationHasBeenSet = true; m_testingInformation = std::move(value); } /** *The steps that you should follow to determine if the control has been * satisfied.
*/ inline void SetTestingInformation(const char* value) { m_testingInformationHasBeenSet = true; m_testingInformation.assign(value); } /** *The steps that you should follow to determine if the control has been * satisfied.
*/ inline Control& WithTestingInformation(const Aws::String& value) { SetTestingInformation(value); return *this;} /** *The steps that you should follow to determine if the control has been * satisfied.
*/ inline Control& WithTestingInformation(Aws::String&& value) { SetTestingInformation(std::move(value)); return *this;} /** *The steps that you should follow to determine if the control has been * satisfied.
*/ inline Control& WithTestingInformation(const char* value) { SetTestingInformation(value); return *this;} /** *The title of the action plan for remediating the control.
*/ inline const Aws::String& GetActionPlanTitle() const{ return m_actionPlanTitle; } /** *The title of the action plan for remediating the control.
*/ inline bool ActionPlanTitleHasBeenSet() const { return m_actionPlanTitleHasBeenSet; } /** *The title of the action plan for remediating the control.
*/ inline void SetActionPlanTitle(const Aws::String& value) { m_actionPlanTitleHasBeenSet = true; m_actionPlanTitle = value; } /** *The title of the action plan for remediating the control.
*/ inline void SetActionPlanTitle(Aws::String&& value) { m_actionPlanTitleHasBeenSet = true; m_actionPlanTitle = std::move(value); } /** *The title of the action plan for remediating the control.
*/ inline void SetActionPlanTitle(const char* value) { m_actionPlanTitleHasBeenSet = true; m_actionPlanTitle.assign(value); } /** *The title of the action plan for remediating the control.
*/ inline Control& WithActionPlanTitle(const Aws::String& value) { SetActionPlanTitle(value); return *this;} /** *The title of the action plan for remediating the control.
*/ inline Control& WithActionPlanTitle(Aws::String&& value) { SetActionPlanTitle(std::move(value)); return *this;} /** *The title of the action plan for remediating the control.
*/ inline Control& WithActionPlanTitle(const char* value) { SetActionPlanTitle(value); return *this;} /** *The recommended actions to carry out if the control isn't fulfilled.
*/ inline const Aws::String& GetActionPlanInstructions() const{ return m_actionPlanInstructions; } /** *The recommended actions to carry out if the control isn't fulfilled.
*/ inline bool ActionPlanInstructionsHasBeenSet() const { return m_actionPlanInstructionsHasBeenSet; } /** *The recommended actions to carry out if the control isn't fulfilled.
*/ inline void SetActionPlanInstructions(const Aws::String& value) { m_actionPlanInstructionsHasBeenSet = true; m_actionPlanInstructions = value; } /** *The recommended actions to carry out if the control isn't fulfilled.
*/ inline void SetActionPlanInstructions(Aws::String&& value) { m_actionPlanInstructionsHasBeenSet = true; m_actionPlanInstructions = std::move(value); } /** *The recommended actions to carry out if the control isn't fulfilled.
*/ inline void SetActionPlanInstructions(const char* value) { m_actionPlanInstructionsHasBeenSet = true; m_actionPlanInstructions.assign(value); } /** *The recommended actions to carry out if the control isn't fulfilled.
*/ inline Control& WithActionPlanInstructions(const Aws::String& value) { SetActionPlanInstructions(value); return *this;} /** *The recommended actions to carry out if the control isn't fulfilled.
*/ inline Control& WithActionPlanInstructions(Aws::String&& value) { SetActionPlanInstructions(std::move(value)); return *this;} /** *The recommended actions to carry out if the control isn't fulfilled.
*/ inline Control& WithActionPlanInstructions(const char* value) { SetActionPlanInstructions(value); return *this;} /** *The data source types that determine where Audit Manager collects evidence * from for the control.
*/ inline const Aws::String& GetControlSources() const{ return m_controlSources; } /** *The data source types that determine where Audit Manager collects evidence * from for the control.
*/ inline bool ControlSourcesHasBeenSet() const { return m_controlSourcesHasBeenSet; } /** *The data source types that determine where Audit Manager collects evidence * from for the control.
*/ inline void SetControlSources(const Aws::String& value) { m_controlSourcesHasBeenSet = true; m_controlSources = value; } /** *The data source types that determine where Audit Manager collects evidence * from for the control.
*/ inline void SetControlSources(Aws::String&& value) { m_controlSourcesHasBeenSet = true; m_controlSources = std::move(value); } /** *The data source types that determine where Audit Manager collects evidence * from for the control.
*/ inline void SetControlSources(const char* value) { m_controlSourcesHasBeenSet = true; m_controlSources.assign(value); } /** *The data source types that determine where Audit Manager collects evidence * from for the control.
*/ inline Control& WithControlSources(const Aws::String& value) { SetControlSources(value); return *this;} /** *The data source types that determine where Audit Manager collects evidence * from for the control.
*/ inline Control& WithControlSources(Aws::String&& value) { SetControlSources(std::move(value)); return *this;} /** *The data source types that determine where Audit Manager collects evidence * from for the control.
*/ inline Control& WithControlSources(const char* value) { SetControlSources(value); return *this;} /** *The data mapping sources for the control.
*/ inline const Aws::VectorThe data mapping sources for the control.
*/ inline bool ControlMappingSourcesHasBeenSet() const { return m_controlMappingSourcesHasBeenSet; } /** *The data mapping sources for the control.
*/ inline void SetControlMappingSources(const Aws::VectorThe data mapping sources for the control.
*/ inline void SetControlMappingSources(Aws::VectorThe data mapping sources for the control.
*/ inline Control& WithControlMappingSources(const Aws::VectorThe data mapping sources for the control.
*/ inline Control& WithControlMappingSources(Aws::VectorThe data mapping sources for the control.
*/ inline Control& AddControlMappingSources(const ControlMappingSource& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources.push_back(value); return *this; } /** *The data mapping sources for the control.
*/ inline Control& AddControlMappingSources(ControlMappingSource&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources.push_back(std::move(value)); return *this; } /** *The time when the control was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The time when the control was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The time when the control was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The time when the control was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The time when the control was created.
*/ inline Control& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The time when the control was created.
*/ inline Control& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The time when the control was most recently updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *The time when the control was most recently updated.
*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *The time when the control was most recently updated.
*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *The time when the control was most recently updated.
*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *The time when the control was most recently updated.
*/ inline Control& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *The time when the control was most recently updated.
*/ inline Control& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *The user or role that created the control.
*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *The user or role that created the control.
*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *The user or role that created the control.
*/ inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *The user or role that created the control.
*/ inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *The user or role that created the control.
*/ inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } /** *The user or role that created the control.
*/ inline Control& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *The user or role that created the control.
*/ inline Control& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *The user or role that created the control.
*/ inline Control& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} /** *The user or role that most recently updated the control.
*/ inline const Aws::String& GetLastUpdatedBy() const{ return m_lastUpdatedBy; } /** *The user or role that most recently updated the control.
*/ inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; } /** *The user or role that most recently updated the control.
*/ inline void SetLastUpdatedBy(const Aws::String& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = value; } /** *The user or role that most recently updated the control.
*/ inline void SetLastUpdatedBy(Aws::String&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::move(value); } /** *The user or role that most recently updated the control.
*/ inline void SetLastUpdatedBy(const char* value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy.assign(value); } /** *The user or role that most recently updated the control.
*/ inline Control& WithLastUpdatedBy(const Aws::String& value) { SetLastUpdatedBy(value); return *this;} /** *The user or role that most recently updated the control.
*/ inline Control& WithLastUpdatedBy(Aws::String&& value) { SetLastUpdatedBy(std::move(value)); return *this;} /** *The user or role that most recently updated the control.
*/ inline Control& WithLastUpdatedBy(const char* value) { SetLastUpdatedBy(value); return *this;} /** *The tags associated with the control.
*/ inline const Aws::MapThe tags associated with the control.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags associated with the control.
*/ inline void SetTags(const Aws::MapThe tags associated with the control.
*/ inline void SetTags(Aws::MapThe tags associated with the control.
*/ inline Control& WithTags(const Aws::MapThe tags associated with the control.
*/ inline Control& WithTags(Aws::MapThe tags associated with the control.
*/ inline Control& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The tags associated with the control.
*/ inline Control& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags associated with the control.
*/ inline Control& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags associated with the control.
*/ inline Control& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The tags associated with the control.
*/ inline Control& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags associated with the control.
*/ inline Control& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags associated with the control.
*/ inline Control& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; ControlType m_type; bool m_typeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_testingInformation; bool m_testingInformationHasBeenSet = false; Aws::String m_actionPlanTitle; bool m_actionPlanTitleHasBeenSet = false; Aws::String m_actionPlanInstructions; bool m_actionPlanInstructionsHasBeenSet = false; Aws::String m_controlSources; bool m_controlSourcesHasBeenSet = false; Aws::Vector