com.amazonaws.services.autoscaling.model
Class SetInstanceHealthRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.SetInstanceHealthRequest
All Implemented Interfaces:
java.io.Serializable

public class SetInstanceHealthRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

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 .

See Also:
AmazonAutoScaling.setInstanceHealth(SetInstanceHealthRequest), Serialized Form

Constructor 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

SetInstanceHealthRequest

public SetInstanceHealthRequest()
Method Detail

getInstanceId

public java.lang.String getInstanceId()
The identifier of the Amazon EC2 instance.

Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The identifier of the Amazon EC2 instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon EC2 instance.

Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
instanceId - The identifier of the Amazon EC2 instance.

withInstanceId

public SetInstanceHealthRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon EC2 instance.

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]*

Parameters:
instanceId - The identifier of the Amazon EC2 instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getHealthStatus

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: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
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.

setHealthStatus

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: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
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.

withHealthStatus

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: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
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 updated object so that method calls can be chained together.

isShouldRespectGracePeriod

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 HealthCheckGracePeriod parameter description in the CreateAutoScalingGroup action.

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 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.


setShouldRespectGracePeriod

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 HealthCheckGracePeriod parameter description in the CreateAutoScalingGroup action.

Parameters:
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.


withShouldRespectGracePeriod

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 HealthCheckGracePeriod parameter description in the CreateAutoScalingGroup action.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.

Returns:
A reference to this updated object so that method calls can be chained together.

getShouldRespectGracePeriod

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 HealthCheckGracePeriod parameter description in the CreateAutoScalingGroup action.

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 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.


toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.