|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.autoscaling.model.SetInstanceHealthRequest
public class SetInstanceHealthRequest
Container for the parameters to the 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 .
AmazonAutoScaling.setInstanceHealth(SetInstanceHealthRequest)
,
Serialized FormConstructor Summary | |
---|---|
SetInstanceHealthRequest()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getHealthStatus()
The health status of the instance. |
java.lang.String |
getInstanceId()
The identifier of the Amazon EC2 instance. |
java.lang.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()
|
java.lang.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(java.lang.String healthStatus)
The health status of the instance. |
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon EC2 instance. |
void |
setShouldRespectGracePeriod(java.lang.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. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SetInstanceHealthRequest |
withHealthStatus(java.lang.String healthStatus)
The health status of the instance. |
SetInstanceHealthRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon EC2 instance. |
SetInstanceHealthRequest |
withShouldRespectGracePeriod(java.lang.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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetInstanceHealthRequest()
Method Detail |
---|
public java.lang.String getInstanceId()
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceId(java.lang.String instanceId)
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId
- The identifier of the Amazon EC2 instance.public SetInstanceHealthRequest withInstanceId(java.lang.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 identifier of the Amazon EC2 instance.
public java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |