@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ControlCondition extends Object implements Serializable, Cloneable, StructuredPojo
A control condition is an alarm that you specify for a practice run. When you configure practice runs with zonal autoshift for a resource, you specify Amazon CloudWatch alarms, which you create in CloudWatch to use with the practice run. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from starting or to interrupt a practice run in progress.
Control condition alarms do not apply for autoshifts.
For more information, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
Constructor and Description |
---|
ControlCondition() |
Modifier and Type | Method and Description |
---|---|
ControlCondition |
clone() |
boolean |
equals(Object obj) |
String |
getAlarmIdentifier()
The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a
practice run.
|
String |
getType()
The type of alarm specified for a practice run.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlarmIdentifier(String alarmIdentifier)
The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a
practice run.
|
void |
setType(String type)
The type of alarm specified for a practice run.
|
String |
toString()
Returns a string representation of this object.
|
ControlCondition |
withAlarmIdentifier(String alarmIdentifier)
The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a
practice run.
|
ControlCondition |
withType(ControlConditionType type)
The type of alarm specified for a practice run.
|
ControlCondition |
withType(String type)
The type of alarm specified for a practice run.
|
public void setAlarmIdentifier(String alarmIdentifier)
The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
alarmIdentifier
- The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for
a practice run.public String getAlarmIdentifier()
The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
public ControlCondition withAlarmIdentifier(String alarmIdentifier)
The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
alarmIdentifier
- The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for
a practice run.public void setType(String type)
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs,
so the only valid value is CLOUDWATCH
.
type
- The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice
runs, so the only valid value is CLOUDWATCH
.ControlConditionType
public String getType()
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs,
so the only valid value is CLOUDWATCH
.
CLOUDWATCH
.ControlConditionType
public ControlCondition withType(String type)
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs,
so the only valid value is CLOUDWATCH
.
type
- The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice
runs, so the only valid value is CLOUDWATCH
.ControlConditionType
public ControlCondition withType(ControlConditionType type)
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs,
so the only valid value is CLOUDWATCH
.
type
- The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice
runs, so the only valid value is CLOUDWATCH
.ControlConditionType
public String toString()
toString
in class Object
Object.toString()
public ControlCondition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.