@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()
Creates a shallow clone of this object for all fields except the handler context.
|
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 will respect 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 will respect 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 will respect the grace period. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 will respect the grace period. |
addHandlerContext, 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
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.
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.public String getHealthStatus()
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 SetInstanceHealthRequest withHealthStatus(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.
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.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 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.
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.
public Boolean getShouldRespectGracePeriod()
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 withShouldRespectGracePeriod(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.
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.
public Boolean isShouldRespectGracePeriod()
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 String toString()
toString
in class Object
Object.toString()
public SetInstanceHealthRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.