Class ControlCondition
- java.lang.Object
-
- software.amazon.awssdk.services.arczonalshift.model.ControlCondition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ControlCondition.Builder,ControlCondition>
@Generated("software.amazon.awssdk:codegen") public final class ControlCondition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ControlCondition.Builder,ControlCondition>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceControlCondition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringalarmIdentifier()The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.static ControlCondition.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ControlCondition.Builder>serializableBuilderClass()ControlCondition.BuildertoBuilder()StringtoString()Returns a string representation of this object.ControlConditionTypetype()The type of alarm specified for a practice run.StringtypeAsString()The type of alarm specified for a practice run.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
alarmIdentifier
public final String alarmIdentifier()
The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
- Returns:
- The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
-
type
public final 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.If the service returns an enum value that is not available in the current SDK version,
typewill returnControlConditionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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. - See Also:
ControlConditionType
-
typeAsString
public final String typeAsString()
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.If the service returns an enum value that is not available in the current SDK version,
typewill returnControlConditionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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. - See Also:
ControlConditionType
-
toBuilder
public ControlCondition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ControlCondition.Builder,ControlCondition>
-
builder
public static ControlCondition.Builder builder()
-
serializableBuilderClass
public static Class<? extends ControlCondition.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-