public class SetInstanceHealthRequest extends AmazonWebServiceRequest implements Serializable
SetInstanceHealth operation
.
Sets the health status of a specified instance that belongs to any of your Auto Scaling groups.
For more information, see Configure Health Checks for Your Auto Scaling group .
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 identifier of the Amazon 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 identifier of the Amazon 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 identifier of the Amazon 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. |
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getInstanceId()
Constraints:
Length: 1 - 16
Pattern: [ --�𐀀-\r\n\t]*
public void setInstanceId(String instanceId)
Constraints:
Length: 1 - 16
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The identifier of the Amazon 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: [ --�𐀀-\r\n\t]*
instanceId
- The identifier of the Amazon 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: [ --�𐀀-\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: [ --�𐀀-\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: [ --�𐀀-\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 in the
CreateAutoScalingGroup action.
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 in the
CreateAutoScalingGroup action.
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 in the
CreateAutoScalingGroup action.
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 in the
CreateAutoScalingGroup action.
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 in the
CreateAutoScalingGroup action.
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 in the
CreateAutoScalingGroup action.
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 in the
CreateAutoScalingGroup action.
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 in the
CreateAutoScalingGroup action.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.