/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A rollback trigger CloudFormation monitors during creation and updating of
* stacks. If any of the alarms you specify goes to ALARM state during the stack
* operation or within the specified monitoring period afterwards, CloudFormation
* rolls back the entire stack operation.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the rollback trigger.
If a specified * trigger is missing, the entire stack operation fails and is rolled back.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the rollback trigger.
If a specified * trigger is missing, the entire stack operation fails and is rolled back.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the rollback trigger.
If a specified * trigger is missing, the entire stack operation fails and is rolled back.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the rollback trigger.
If a specified * trigger is missing, the entire stack operation fails and is rolled back.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the rollback trigger.
If a specified * trigger is missing, the entire stack operation fails and is rolled back.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the rollback trigger.
If a specified * trigger is missing, the entire stack operation fails and is rolled back.
*/ inline RollbackTrigger& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the rollback trigger.
If a specified * trigger is missing, the entire stack operation fails and is rolled back.
*/ inline RollbackTrigger& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the rollback trigger.
If a specified * trigger is missing, the entire stack operation fails and is rolled back.
*/ inline RollbackTrigger& WithArn(const char* value) { SetArn(value); return *this;} /** *The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm * or AWS::CloudWatch::CompositeAlarm * resource types.
*/ inline const Aws::String& GetType() const{ return m_type; } /** *The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm * or AWS::CloudWatch::CompositeAlarm * resource types.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm * or AWS::CloudWatch::CompositeAlarm * resource types.
*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm * or AWS::CloudWatch::CompositeAlarm * resource types.
*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm * or AWS::CloudWatch::CompositeAlarm * resource types.
*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm * or AWS::CloudWatch::CompositeAlarm * resource types.
*/ inline RollbackTrigger& WithType(const Aws::String& value) { SetType(value); return *this;} /** *The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm * or AWS::CloudWatch::CompositeAlarm * resource types.
*/ inline RollbackTrigger& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm * or AWS::CloudWatch::CompositeAlarm * resource types.
*/ inline RollbackTrigger& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws