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 request.
|
boolean |
equals(Object obj) |
String |
getHealthStatus()
The health status of the instance.
|
String |
getInstanceId()
The ID of the EC2 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 EC2 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 EC2 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. |
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setInstanceId(String instanceId)
The ID of the EC2 instance.
instanceId - The ID of the EC2 instance.public String getInstanceId()
The ID of the EC2 instance.
public SetInstanceHealthRequest withInstanceId(String instanceId)
The ID of the EC2 instance.
instanceId - The ID of the EC2 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 HealthCheckGracePeriod
parameter description 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 HealthCheckGracePeriod
parameter description 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 HealthCheckGracePeriod
parameter description 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 HealthCheckGracePeriod
parameter description 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 HealthCheckGracePeriod
parameter description 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 HealthCheckGracePeriod
parameter description 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 HealthCheckGracePeriod
parameter description 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 HealthCheckGracePeriod
parameter description for CreateAutoScalingGroup.
public String toString()
toString in class ObjectObject.toString()public SetInstanceHealthRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.