public class SetInstanceHealthRequest extends AmazonWebServiceRequest implements Serializable
SetInstanceHealth operation
.
Sets the health status of the specified instance.
For more information, see Health Checks in the Auto Scaling Developer Guide .
NOOP
Constructor and Description |
---|
SetInstanceHealthRequest() |
Modifier and Type | Method and Description |
---|---|
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. |
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getInstanceId()
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceId(String instanceId)
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId
- The ID of the EC2 instance.public SetInstanceHealthRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId
- The ID of the EC2 instance.public String getHealthStatus()
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.
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 setHealthStatus(String healthStatus)
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.
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 SetInstanceHealthRequest withHealthStatus(String healthStatus)
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 Boolean isShouldRespectGracePeriod()
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 void setShouldRespectGracePeriod(Boolean shouldRespectGracePeriod)
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 SetInstanceHealthRequest withShouldRespectGracePeriod(Boolean shouldRespectGracePeriod)
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.
Returns a reference to this object so that method calls can be chained together.
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()
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 Object
Object.toString()
Copyright © 2015. All rights reserved.