Class SetInstanceHealthRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.autoscaling.model.SetInstanceHealthRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SetInstanceHealthRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetInstanceHealthRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 instance.Boolean
getShouldRespectGracePeriod()
If the Auto Scaling group of the specified instance has aHealthCheckGracePeriod
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 aHealthCheckGracePeriod
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 aHealthCheckGracePeriod
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 aHealthCheckGracePeriod
specified for the group, by default, this call will respect the grace period.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public SetInstanceHealthRequest withInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHealthStatus
public void setHealthStatus(String healthStatus)
The health status of the instance. Set to
Healthy
if you want the instance to remain in service. Set toUnhealthy
if you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.- Parameters:
healthStatus
- The health status of the instance. Set toHealthy
if you want the instance to remain in service. Set toUnhealthy
if you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.
-
getHealthStatus
public String getHealthStatus()
The health status of the instance. Set to
Healthy
if you want the instance to remain in service. Set toUnhealthy
if you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.- Returns:
- The health status of the instance. Set to
Healthy
if you want the instance to remain in service. Set toUnhealthy
if you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.
-
withHealthStatus
public SetInstanceHealthRequest withHealthStatus(String healthStatus)
The health status of the instance. Set to
Healthy
if you want the instance to remain in service. Set toUnhealthy
if you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.- Parameters:
healthStatus
- The health status of the instance. Set toHealthy
if you want the instance to remain in service. Set toUnhealthy
if you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setShouldRespectGracePeriod
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 toFalse
, 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.
- Parameters:
shouldRespectGracePeriod
- If the Auto Scaling group of the specified instance has aHealthCheckGracePeriod
specified for the group, by default, this call will respect the grace period. Set this toFalse
, 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.
-
getShouldRespectGracePeriod
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 toFalse
, 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.
- Returns:
- 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 toFalse
, 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.
-
withShouldRespectGracePeriod
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 toFalse
, 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.
- Parameters:
shouldRespectGracePeriod
- If the Auto Scaling group of the specified instance has aHealthCheckGracePeriod
specified for the group, by default, this call will respect the grace period. Set this toFalse
, 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isShouldRespectGracePeriod
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 toFalse
, 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.
- Returns:
- 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 toFalse
, 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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetInstanceHealthRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-