Class SetInstanceHealthRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.autoscaling.model.AutoScalingRequest
-
- software.amazon.awssdk.services.autoscaling.model.SetInstanceHealthRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
@Generated("software.amazon.awssdk:codegen") public final class SetInstanceHealthRequest extends AutoScalingRequest implements ToCopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSetInstanceHealthRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetInstanceHealthRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhealthStatus()The health status of the instance.StringinstanceId()The ID of the instance.List<SdkField<?>>sdkFields()static Class<? extends SetInstanceHealthRequest.Builder>serializableBuilderClass()BooleanshouldRespectGracePeriod()If the Auto Scaling group of the specified instance has aHealthCheckGracePeriodspecified for the group, by default, this call respects the grace period.SetInstanceHealthRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
instanceId
public final String instanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
healthStatus
public final String healthStatus()
The health status of the instance. Set to
Healthyto have the instance remain in service. Set toUnhealthyto have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.- Returns:
- The health status of the instance. Set to
Healthyto have the instance remain in service. Set toUnhealthyto have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.
-
shouldRespectGracePeriod
public final Boolean shouldRespectGracePeriod()
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriodspecified for the group, by default, this call respects the grace period. Set this toFalse, to have the call not respect the grace period associated with the group.For more information about the health check grace period, see Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.
- Returns:
- If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriodspecified for the group, by default, this call respects the grace period. Set this toFalse, to have the call not respect the grace period associated with the group.For more information about the health check grace period, see Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.
-
toBuilder
public SetInstanceHealthRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>- Specified by:
toBuilderin classAutoScalingRequest
-
builder
public static SetInstanceHealthRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SetInstanceHealthRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-