public class SetInstanceHealthRequest extends AmazonWebServiceRequest implements java.io.Serializable
Sets the health status of the specified instance.
For more information, see Health Checks in the Auto Scaling Developer Guide.
Constructor and Description |
---|
SetInstanceHealthRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getHealthStatus()
The health status of the instance.
|
java.lang.String |
getInstanceId()
The ID of the 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 ID of the 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 ID of the 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. |
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getInstanceId()
The ID of the instance.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
The ID of the instance.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the instance.
public SetInstanceHealthRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the instance.
public java.lang.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.
Constraints:
Length: 1 - 32
Pattern: [ --�𐀀-\r\n\t]*
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 setHealthStatus(java.lang.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.
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(java.lang.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.
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 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. 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 description of the health check grace period for CreateAutoScalingGroup.
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 description of the health check grace period for CreateAutoScalingGroup.
public 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. 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 description of the health check grace period for CreateAutoScalingGroup.
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 description of the health check grace period for CreateAutoScalingGroup.
public 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. 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 description of the health check grace period 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 description of the health check grace period for CreateAutoScalingGroup.
public 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. 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 description of the health check grace period 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 description of the health check grace period for CreateAutoScalingGroup.
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
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.