com.amazonaws.services.autoscaling.model
Class SetInstanceHealthRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.SetInstanceHealthRequest

public class SetInstanceHealthRequest
extends AmazonWebServiceRequest

Container for the parameters to the SetInstanceHealth operation.

Sets the health status of an instance.

See Also:
AmazonAutoScaling.setInstanceHealth(SetInstanceHealthRequest)

Constructor Summary
SetInstanceHealthRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getHealthStatus()
          The health status of the instance.
 String getInstanceId()
          The identifier of the Amazon EC2 instance.
 Boolean getShouldRespectGracePeriod()
          If True, this call should respect the grace period associated with the group.
 int hashCode()
           
 Boolean isShouldRespectGracePeriod()
          If True, this call should respect the grace period associated with the group.
 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 True, this call should respect the grace period associated with the group.
 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 True, this call should respect the grace period associated with the group.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetInstanceHealthRequest

public SetInstanceHealthRequest()
Method Detail

getInstanceId

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

Constraints:
Length: 1 - 16
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The identifier of the Amazon EC2 instance.

setInstanceId

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

Constraints:
Length: 1 - 16
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

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

withInstanceId

public SetInstanceHealthRequest withInstanceId(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: [ -퟿-�𐀀-􏿿\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 String getHealthStatus()
The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

Constraints:
Length: 1 - 32
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

setHealthStatus

public void setHealthStatus(String healthStatus)
The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

Constraints:
Length: 1 - 32
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
healthStatus - The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

withHealthStatus

public SetInstanceHealthRequest withHealthStatus(String healthStatus)
The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.

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

Constraints:
Length: 1 - 32
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
healthStatus - The health status of the instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy. Auto Scaling should terminate and replace it.
Returns:
A reference to this updated object so that method calls can be chained together.

isShouldRespectGracePeriod

public Boolean isShouldRespectGracePeriod()
If True, this call should respect the grace period associated with the group.

Returns:
If True, this call should respect the grace period associated with the group.

setShouldRespectGracePeriod

public void setShouldRespectGracePeriod(Boolean shouldRespectGracePeriod)
If True, this call should respect the grace period associated with the group.

Parameters:
shouldRespectGracePeriod - If True, this call should respect the grace period associated with the group.

withShouldRespectGracePeriod

public SetInstanceHealthRequest withShouldRespectGracePeriod(Boolean shouldRespectGracePeriod)
If True, this call should respect the grace period associated with the group.

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

Parameters:
shouldRespectGracePeriod - If True, this call should respect the grace period associated with the group.
Returns:
A reference to this updated object so that method calls can be chained together.

getShouldRespectGracePeriod

public Boolean getShouldRespectGracePeriod()
If True, this call should respect the grace period associated with the group.

Returns:
If True, this call should respect the grace period associated with the group.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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