@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RollbackTrigger extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
RollbackTrigger() |
Modifier and Type | Method and Description |
---|---|
RollbackTrigger |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the rollback trigger.
|
String |
getType()
The resource type of the rollback trigger.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the rollback trigger.
|
void |
setType(String type)
The resource type of the rollback trigger.
|
String |
toString()
Returns a string representation of this object.
|
RollbackTrigger |
withArn(String arn)
The Amazon Resource Name (ARN) of the rollback trigger.
|
RollbackTrigger |
withType(String type)
The resource type of the rollback trigger.
|
public void setArn(String 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.
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.
public String getArn()
The Amazon Resource Name (ARN) of the rollback trigger.
If a specified trigger is missing, the entire stack operation fails and is rolled back.
If a specified trigger is missing, the entire stack operation fails and is rolled back.
public RollbackTrigger withArn(String 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.
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.
public void setType(String type)
The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm or AWS::CloudWatch::CompositeAlarm resource types.
type
- The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm or AWS::CloudWatch::CompositeAlarm resource types.public String getType()
The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm or AWS::CloudWatch::CompositeAlarm resource types.
public RollbackTrigger withType(String type)
The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm or AWS::CloudWatch::CompositeAlarm resource types.
type
- The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm or AWS::CloudWatch::CompositeAlarm resource types.public String toString()
toString
in class Object
Object.toString()
public RollbackTrigger clone()