/** * 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 AuditManager { namespace Model { /** */ class CreateControlRequest : public AuditManagerRequest { public: AWS_AUDITMANAGER_API CreateControlRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateControl"; } AWS_AUDITMANAGER_API Aws::String SerializePayload() const override; /** *

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 CreateControlRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the control.

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

The name of the control.

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

The description of the control.

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

The description of the control.

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

The steps to follow to determine if the control is satisfied.

*/ inline const Aws::String& GetTestingInformation() const{ return m_testingInformation; } /** *

The steps to follow to determine if the control is satisfied.

*/ inline bool TestingInformationHasBeenSet() const { return m_testingInformationHasBeenSet; } /** *

The steps to follow to determine if the control is satisfied.

*/ inline void SetTestingInformation(const Aws::String& value) { m_testingInformationHasBeenSet = true; m_testingInformation = value; } /** *

The steps to follow to determine if the control is satisfied.

*/ inline void SetTestingInformation(Aws::String&& value) { m_testingInformationHasBeenSet = true; m_testingInformation = std::move(value); } /** *

The steps to follow to determine if the control is satisfied.

*/ inline void SetTestingInformation(const char* value) { m_testingInformationHasBeenSet = true; m_testingInformation.assign(value); } /** *

The steps to follow to determine if the control is satisfied.

*/ inline CreateControlRequest& WithTestingInformation(const Aws::String& value) { SetTestingInformation(value); return *this;} /** *

The steps to follow to determine if the control is satisfied.

*/ inline CreateControlRequest& WithTestingInformation(Aws::String&& value) { SetTestingInformation(std::move(value)); return *this;} /** *

The steps to follow to determine if the control is satisfied.

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

The title of the action plan for remediating the control.

*/ inline CreateControlRequest& WithActionPlanTitle(Aws::String&& value) { SetActionPlanTitle(std::move(value)); return *this;} /** *

The title of the action plan for remediating the control.

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

The recommended actions to carry out if the control isn't fulfilled.

*/ inline CreateControlRequest& WithActionPlanInstructions(Aws::String&& value) { SetActionPlanInstructions(std::move(value)); return *this;} /** *

The recommended actions to carry out if the control isn't fulfilled.

*/ inline CreateControlRequest& WithActionPlanInstructions(const char* value) { SetActionPlanInstructions(value); return *this;} /** *

The data mapping sources for the control.

*/ inline const Aws::Vector& GetControlMappingSources() const{ return m_controlMappingSources; } /** *

The 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::Vector& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources = value; } /** *

The data mapping sources for the control.

*/ inline void SetControlMappingSources(Aws::Vector&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources = std::move(value); } /** *

The data mapping sources for the control.

*/ inline CreateControlRequest& WithControlMappingSources(const Aws::Vector& value) { SetControlMappingSources(value); return *this;} /** *

The data mapping sources for the control.

*/ inline CreateControlRequest& WithControlMappingSources(Aws::Vector&& value) { SetControlMappingSources(std::move(value)); return *this;} /** *

The data mapping sources for the control.

*/ inline CreateControlRequest& AddControlMappingSources(const CreateControlMappingSource& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources.push_back(value); return *this; } /** *

The data mapping sources for the control.

*/ inline CreateControlRequest& AddControlMappingSources(CreateControlMappingSource&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources.push_back(std::move(value)); return *this; } /** *

The tags that are associated with the control.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags that are associated with the control.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags that are associated with the control.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags that are associated with the control.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags that are associated with the control.

*/ inline CreateControlRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags that are associated with the control.

*/ inline CreateControlRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags that are associated with the control.

*/ inline CreateControlRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags that are associated with the control.

*/ inline CreateControlRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags that are associated with the control.

*/ inline CreateControlRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags that are associated with the control.

*/ inline CreateControlRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags that are associated with the control.

*/ inline CreateControlRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags that are associated with the control.

*/ inline CreateControlRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags that are associated with the control.

*/ inline CreateControlRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: 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::Vector m_controlMappingSources; bool m_controlMappingSourcesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws