@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetInstanceHealthRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SetInstanceHealthRequest() |
Modifier and Type | Method and Description |
---|---|
SetInstanceHealthRequest |
clone() |
boolean |
equals(Object obj) |
String |
getHealthStatus()
The health status of the instance.
|
String |
getInstanceId()
The ID of the instance.
|
Boolean |
getShouldRespectGracePeriod()
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriod specified for the
group, by default, this call respects the grace period. |
int |
hashCode() |
Boolean |
isShouldRespectGracePeriod()
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriod specified for the
group, by default, this call respects the grace period. |
void |
setHealthStatus(String healthStatus)
The health status of the instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setShouldRespectGracePeriod(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. |
String |
toString()
Returns a string representation of this object.
|
SetInstanceHealthRequest |
withHealthStatus(String healthStatus)
The health status of the instance.
|
SetInstanceHealthRequest |
withInstanceId(String instanceId)
The ID of the instance.
|
SetInstanceHealthRequest |
withShouldRespectGracePeriod(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. |
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public SetInstanceHealthRequest withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setHealthStatus(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.
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.public String getHealthStatus()
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 SetInstanceHealthRequest withHealthStatus(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.
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.public void setShouldRespectGracePeriod(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 in the Amazon EC2 Auto Scaling API Reference.
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 in the Amazon EC2 Auto Scaling API Reference.
public Boolean getShouldRespectGracePeriod()
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 in the Amazon EC2 Auto Scaling API Reference.
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 in the Amazon EC2 Auto Scaling API Reference.
public SetInstanceHealthRequest withShouldRespectGracePeriod(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 in the Amazon EC2 Auto Scaling API Reference.
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 in the Amazon EC2 Auto Scaling API Reference.
public Boolean isShouldRespectGracePeriod()
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 in the Amazon EC2 Auto Scaling API Reference.
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 in the Amazon EC2 Auto Scaling API Reference.
public String toString()
toString
in class Object
Object.toString()
public SetInstanceHealthRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2024. All rights reserved.