@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) |
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() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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()
toBuilder in interface ToCopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>toBuilder in class AutoScalingRequestpublic static SetInstanceHealthRequest.Builder builder()
public static Class<? extends SetInstanceHealthRequest.Builder> serializableBuilderClass()
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2019. All rights reserved.