/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes which changes should be applied as part of a mitigation
* action.See Also:
AWS
* API Reference
A user-friendly name for the mitigation action.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *A user-friendly name for the mitigation action.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *A user-friendly name for the mitigation action.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *A user-friendly name for the mitigation action.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *A user-friendly name for the mitigation action.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *A user-friendly name for the mitigation action.
*/ inline MitigationAction& WithName(const Aws::String& value) { SetName(value); return *this;} /** *A user-friendly name for the mitigation action.
*/ inline MitigationAction& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *A user-friendly name for the mitigation action.
*/ inline MitigationAction& WithName(const char* value) { SetName(value); return *this;} /** *A unique identifier for the mitigation action.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *A unique identifier for the mitigation action.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *A unique identifier for the mitigation action.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *A unique identifier for the mitigation action.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *A unique identifier for the mitigation action.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *A unique identifier for the mitigation action.
*/ inline MitigationAction& WithId(const Aws::String& value) { SetId(value); return *this;} /** *A unique identifier for the mitigation action.
*/ inline MitigationAction& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *A unique identifier for the mitigation action.
*/ inline MitigationAction& WithId(const char* value) { SetId(value); return *this;} /** *The IAM role ARN used to apply this mitigation action.
*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *The IAM role ARN used to apply this mitigation action.
*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *The IAM role ARN used to apply this mitigation action.
*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *The IAM role ARN used to apply this mitigation action.
*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *The IAM role ARN used to apply this mitigation action.
*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *The IAM role ARN used to apply this mitigation action.
*/ inline MitigationAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *The IAM role ARN used to apply this mitigation action.
*/ inline MitigationAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *The IAM role ARN used to apply this mitigation action.
*/ inline MitigationAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *The set of parameters for this mitigation action. The parameters vary, * depending on the kind of action you apply.
*/ inline const MitigationActionParams& GetActionParams() const{ return m_actionParams; } /** *The set of parameters for this mitigation action. The parameters vary, * depending on the kind of action you apply.
*/ inline bool ActionParamsHasBeenSet() const { return m_actionParamsHasBeenSet; } /** *The set of parameters for this mitigation action. The parameters vary, * depending on the kind of action you apply.
*/ inline void SetActionParams(const MitigationActionParams& value) { m_actionParamsHasBeenSet = true; m_actionParams = value; } /** *The set of parameters for this mitigation action. The parameters vary, * depending on the kind of action you apply.
*/ inline void SetActionParams(MitigationActionParams&& value) { m_actionParamsHasBeenSet = true; m_actionParams = std::move(value); } /** *The set of parameters for this mitigation action. The parameters vary, * depending on the kind of action you apply.
*/ inline MitigationAction& WithActionParams(const MitigationActionParams& value) { SetActionParams(value); return *this;} /** *The set of parameters for this mitigation action. The parameters vary, * depending on the kind of action you apply.
*/ inline MitigationAction& WithActionParams(MitigationActionParams&& value) { SetActionParams(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; MitigationActionParams m_actionParams; bool m_actionParamsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws