@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.
|
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 will respect 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() |
overrideConfiguration
copy
public String instanceId()
The ID of the instance.
public String healthStatus()
The health status of the instance. Set to Healthy
if you want the instance to remain in service. Set
to Unhealthy
if you want the instance to be out of service. Auto Scaling will terminate and replace
the unhealthy instance.
Healthy
if you want the instance to remain in
service. Set to Unhealthy
if you want the instance to be out of service. Auto Scaling will
terminate and replace 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 will respect the grace period. Set this to False
, if you do not want
the call to respect the grace period associated with the group.
For more information, see the description of the health check grace period for CreateAutoScalingGroup.
HealthCheckGracePeriod
specified
for the group, by default, this call will respect the grace period. Set this to False
, if
you do not want the call to respect the grace period associated with the group.
For more information, see the description of the health check grace period for CreateAutoScalingGroup.
public SetInstanceHealthRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
toBuilder
in class AutoScalingRequest
public static SetInstanceHealthRequest.Builder builder()
public static Class<? extends SetInstanceHealthRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. 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 SdkRequest
fieldName
- 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.