@Generated(value="software.amazon.awssdk:codegen") public final class SetInstanceHealthRequest extends AutoScalingRequest implements ToCopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
SetInstanceHealthRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SetInstanceHealthRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest. |
int |
hashCode() |
String |
healthStatus()
The health status of the instance.
|
String |
instanceId()
The ID of the instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SetInstanceHealthRequest.Builder> |
serializableBuilderClass() |
Boolean |
shouldRespectGracePeriod()
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriod specified for the
group, by default, this call respects the grace period. |
SetInstanceHealthRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfigurationcopypublic String instanceId()
The ID of the instance.
public String healthStatus()
The health status of the instance. Set to Healthy to have the instance remain in service. Set to
Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces
the unhealthy instance.
Healthy to have the instance remain in service.
Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates
and replaces the unhealthy instance.public Boolean shouldRespectGracePeriod()
If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the
group, by default, this call respects the grace period. Set this to False, to have the call not
respect the grace period associated with the group.
For more information about the health check grace period, see CreateAutoScalingGroup.
HealthCheckGracePeriod specified
for the group, by default, this call respects the grace period. Set this to False, to have
the call not respect the grace period associated with the group.
For more information about the health check grace period, see CreateAutoScalingGroup.
public SetInstanceHealthRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>toBuilder in class AutoScalingRequestpublic static SetInstanceHealthRequest.Builder builder()
public static Class<? extends SetInstanceHealthRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequestSdkRequest. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class) method will
again be available.getValueForField in class SdkRequestfieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.