/** * 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 IoT { namespace Model { /** */ class AWS_IOT_API CreateMitigationActionRequest : public IoTRequest { public: CreateMitigationActionRequest(); // 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 "CreateMitigationAction"; } Aws::String SerializePayload() const override; /** *

A friendly name for the action. Choose a friendly name that accurately * describes the action (for example, EnableLoggingAction).

*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *

A friendly name for the action. Choose a friendly name that accurately * describes the action (for example, EnableLoggingAction).

*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *

A friendly name for the action. Choose a friendly name that accurately * describes the action (for example, EnableLoggingAction).

*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *

A friendly name for the action. Choose a friendly name that accurately * describes the action (for example, EnableLoggingAction).

*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *

A friendly name for the action. Choose a friendly name that accurately * describes the action (for example, EnableLoggingAction).

*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *

A friendly name for the action. Choose a friendly name that accurately * describes the action (for example, EnableLoggingAction).

*/ inline CreateMitigationActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *

A friendly name for the action. Choose a friendly name that accurately * describes the action (for example, EnableLoggingAction).

*/ inline CreateMitigationActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *

A friendly name for the action. Choose a friendly name that accurately * describes the action (for example, EnableLoggingAction).

*/ inline CreateMitigationActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;} /** *

The ARN of the IAM role that is used to apply the mitigation action.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the IAM role that is used to apply the mitigation action.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the IAM role that is used to apply the mitigation action.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the IAM role that is used to apply the mitigation action.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the IAM role that is used to apply the mitigation action.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the IAM role that is used to apply the mitigation action.

*/ inline CreateMitigationActionRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the IAM role that is used to apply the mitigation action.

*/ inline CreateMitigationActionRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the IAM role that is used to apply the mitigation action.

*/ inline CreateMitigationActionRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

Defines the type of action and the parameters for that action.

*/ inline const MitigationActionParams& GetActionParams() const{ return m_actionParams; } /** *

Defines the type of action and the parameters for that action.

*/ inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; } /** *

Defines the type of action and the parameters for that action.

*/ inline void SetActionParams(const MitigationActionParams& value) { m_actionParamsHasBeenSet = true; m_actionParams = value; } /** *

Defines the type of action and the parameters for that action.

*/ inline void SetActionParams(MitigationActionParams&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::move(value); } /** *

Defines the type of action and the parameters for that action.

*/ inline CreateMitigationActionRequest& WithActionParams(const MitigationActionParams& value) { SetActionParams(value); return *this;} /** *

Defines the type of action and the parameters for that action.

*/ inline CreateMitigationActionRequest& WithActionParams(MitigationActionParams&& value) { SetActionParams(std::move(value)); return *this;} /** *

Metadata that can be used to manage the mitigation action.

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

Metadata that can be used to manage the mitigation action.

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

Metadata that can be used to manage the mitigation action.

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

Metadata that can be used to manage the mitigation action.

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

Metadata that can be used to manage the mitigation action.

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

Metadata that can be used to manage the mitigation action.

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

Metadata that can be used to manage the mitigation action.

*/ inline CreateMitigationActionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Metadata that can be used to manage the mitigation action.

*/ inline CreateMitigationActionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_actionName; bool m_actionNameHasBeenSet; Aws::String m_roleArn; bool m_roleArnHasBeenSet; MitigationActionParams m_actionParams; bool m_actionParamsHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace IoT } // namespace Aws