Class AvailabilityZoneImpairmentPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.autoscaling.model.AvailabilityZoneImpairmentPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AvailabilityZoneImpairmentPolicy.Builder,AvailabilityZoneImpairmentPolicy>
@Generated("software.amazon.awssdk:codegen") public final class AvailabilityZoneImpairmentPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AvailabilityZoneImpairmentPolicy.Builder,AvailabilityZoneImpairmentPolicy>
Describes an Availability Zone impairment policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAvailabilityZoneImpairmentPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AvailabilityZoneImpairmentPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ImpairedZoneHealthCheckBehaviorimpairedZoneHealthCheckBehavior()Specifies the health check behavior for the impaired Availability Zone in an active zonal shift.StringimpairedZoneHealthCheckBehaviorAsString()Specifies the health check behavior for the impaired Availability Zone in an active zonal shift.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AvailabilityZoneImpairmentPolicy.Builder>serializableBuilderClass()AvailabilityZoneImpairmentPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.BooleanzonalShiftEnabled()Iftrue, enable zonal shift for your Auto Scaling group.-
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
-
zonalShiftEnabled
public final Boolean zonalShiftEnabled()
If
true, enable zonal shift for your Auto Scaling group.- Returns:
- If
true, enable zonal shift for your Auto Scaling group.
-
impairedZoneHealthCheckBehavior
public final ImpairedZoneHealthCheckBehavior impairedZoneHealthCheckBehavior()
Specifies the health check behavior for the impaired Availability Zone in an active zonal shift. If you select
Replace unhealthy, instances that appear unhealthy will be replaced in all Availability Zones. If you selectIgnore unhealthy, instances will not be replaced in the Availability Zone with the active zonal shift. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide.If the service returns an enum value that is not available in the current SDK version,
impairedZoneHealthCheckBehaviorwill returnImpairedZoneHealthCheckBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimpairedZoneHealthCheckBehaviorAsString().- Returns:
- Specifies the health check behavior for the impaired Availability Zone in an active zonal shift. If you
select
Replace unhealthy, instances that appear unhealthy will be replaced in all Availability Zones. If you selectIgnore unhealthy, instances will not be replaced in the Availability Zone with the active zonal shift. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide. - See Also:
ImpairedZoneHealthCheckBehavior
-
impairedZoneHealthCheckBehaviorAsString
public final String impairedZoneHealthCheckBehaviorAsString()
Specifies the health check behavior for the impaired Availability Zone in an active zonal shift. If you select
Replace unhealthy, instances that appear unhealthy will be replaced in all Availability Zones. If you selectIgnore unhealthy, instances will not be replaced in the Availability Zone with the active zonal shift. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide.If the service returns an enum value that is not available in the current SDK version,
impairedZoneHealthCheckBehaviorwill returnImpairedZoneHealthCheckBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimpairedZoneHealthCheckBehaviorAsString().- Returns:
- Specifies the health check behavior for the impaired Availability Zone in an active zonal shift. If you
select
Replace unhealthy, instances that appear unhealthy will be replaced in all Availability Zones. If you selectIgnore unhealthy, instances will not be replaced in the Availability Zone with the active zonal shift. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide. - See Also:
ImpairedZoneHealthCheckBehavior
-
toBuilder
public AvailabilityZoneImpairmentPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AvailabilityZoneImpairmentPolicy.Builder,AvailabilityZoneImpairmentPolicy>
-
builder
public static AvailabilityZoneImpairmentPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends AvailabilityZoneImpairmentPolicy.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-