/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class DescribeMitigationActionResult { public: AWS_IOT_API DescribeMitigationActionResult(); AWS_IOT_API DescribeMitigationActionResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API DescribeMitigationActionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The friendly name that uniquely identifies the mitigation action.

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

The friendly name that uniquely identifies the mitigation action.

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

The friendly name that uniquely identifies the mitigation action.

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

The friendly name that uniquely identifies the mitigation action.

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

The friendly name that uniquely identifies the mitigation action.

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

The friendly name that uniquely identifies the mitigation action.

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

The friendly name that uniquely identifies the mitigation action.

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

The type of mitigation action.

*/ inline const MitigationActionType& GetActionType() const{ return m_actionType; } /** *

The type of mitigation action.

*/ inline void SetActionType(const MitigationActionType& value) { m_actionType = value; } /** *

The type of mitigation action.

*/ inline void SetActionType(MitigationActionType&& value) { m_actionType = std::move(value); } /** *

The type of mitigation action.

*/ inline DescribeMitigationActionResult& WithActionType(const MitigationActionType& value) { SetActionType(value); return *this;} /** *

The type of mitigation action.

*/ inline DescribeMitigationActionResult& WithActionType(MitigationActionType&& value) { SetActionType(std::move(value)); return *this;} /** *

The ARN that identifies this migration action.

*/ inline const Aws::String& GetActionArn() const{ return m_actionArn; } /** *

The ARN that identifies this migration action.

*/ inline void SetActionArn(const Aws::String& value) { m_actionArn = value; } /** *

The ARN that identifies this migration action.

*/ inline void SetActionArn(Aws::String&& value) { m_actionArn = std::move(value); } /** *

The ARN that identifies this migration action.

*/ inline void SetActionArn(const char* value) { m_actionArn.assign(value); } /** *

The ARN that identifies this migration action.

*/ inline DescribeMitigationActionResult& WithActionArn(const Aws::String& value) { SetActionArn(value); return *this;} /** *

The ARN that identifies this migration action.

*/ inline DescribeMitigationActionResult& WithActionArn(Aws::String&& value) { SetActionArn(std::move(value)); return *this;} /** *

The ARN that identifies this migration action.

*/ inline DescribeMitigationActionResult& WithActionArn(const char* value) { SetActionArn(value); return *this;} /** *

A unique identifier for this action.

*/ inline const Aws::String& GetActionId() const{ return m_actionId; } /** *

A unique identifier for this action.

*/ inline void SetActionId(const Aws::String& value) { m_actionId = value; } /** *

A unique identifier for this action.

*/ inline void SetActionId(Aws::String&& value) { m_actionId = std::move(value); } /** *

A unique identifier for this action.

*/ inline void SetActionId(const char* value) { m_actionId.assign(value); } /** *

A unique identifier for this action.

*/ inline DescribeMitigationActionResult& WithActionId(const Aws::String& value) { SetActionId(value); return *this;} /** *

A unique identifier for this action.

*/ inline DescribeMitigationActionResult& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;} /** *

A unique identifier for this action.

*/ inline DescribeMitigationActionResult& WithActionId(const char* value) { SetActionId(value); return *this;} /** *

The ARN of the IAM role used to apply this action.

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

The ARN of the IAM role used to apply this action.

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

The ARN of the IAM role used to apply this action.

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

The ARN of the IAM role used to apply this action.

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

The ARN of the IAM role used to apply this action.

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

The ARN of the IAM role used to apply this action.

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

The ARN of the IAM role used to apply this action.

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

Parameters that control how the mitigation action is applied, specific to the * type of mitigation action.

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

Parameters that control how the mitigation action is applied, specific to the * type of mitigation action.

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

Parameters that control how the mitigation action is applied, specific to the * type of mitigation action.

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

Parameters that control how the mitigation action is applied, specific to the * type of mitigation action.

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

Parameters that control how the mitigation action is applied, specific to the * type of mitigation action.

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

The date and time when the mitigation action was added to your Amazon Web * Services accounts.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The date and time when the mitigation action was added to your Amazon Web * Services accounts.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; } /** *

The date and time when the mitigation action was added to your Amazon Web * Services accounts.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); } /** *

The date and time when the mitigation action was added to your Amazon Web * Services accounts.

*/ inline DescribeMitigationActionResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date and time when the mitigation action was added to your Amazon Web * Services accounts.

*/ inline DescribeMitigationActionResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The date and time when the mitigation action was last changed.

*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The date and time when the mitigation action was last changed.

*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; } /** *

The date and time when the mitigation action was last changed.

*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); } /** *

The date and time when the mitigation action was last changed.

*/ inline DescribeMitigationActionResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *

The date and time when the mitigation action was last changed.

*/ inline DescribeMitigationActionResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeMitigationActionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeMitigationActionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeMitigationActionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_actionName; MitigationActionType m_actionType; Aws::String m_actionArn; Aws::String m_actionId; Aws::String m_roleArn; MitigationActionParams m_actionParams; Aws::Utils::DateTime m_creationDate; Aws::Utils::DateTime m_lastModifiedDate; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws