|
|||||||
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 an instance.
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 |
---|
public SetInstanceHealthRequest()
Method Detail |
---|
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()
Constraints:
Length: 1 - 32
Pattern: [ --�𐀀-\r\n\t]*
public void setHealthStatus(String healthStatus)
Constraints:
Length: 1 - 32
Pattern: [ --�𐀀-\r\n\t]*
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.public SetInstanceHealthRequest withHealthStatus(String healthStatus)
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. "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.
public Boolean isShouldRespectGracePeriod()
public void setShouldRespectGracePeriod(Boolean shouldRespectGracePeriod)
shouldRespectGracePeriod
- If True, this call should respect the grace period associated with the
group.public SetInstanceHealthRequest withShouldRespectGracePeriod(Boolean shouldRespectGracePeriod)
Returns a reference to this object so that method calls can be chained together.
shouldRespectGracePeriod
- If True, this call should respect the grace period associated with the
group.
public Boolean getShouldRespectGracePeriod()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |