/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFormation { namespace Model { /** *

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

*/ class RollbackTrigger { public: AWS_CLOUDFORMATION_API RollbackTrigger(); AWS_CLOUDFORMATION_API RollbackTrigger(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API RollbackTrigger& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

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