public class SetInstanceHealthRequest extends AmazonWebServiceRequest implements Serializable
SetInstanceHealth operation
.
Sets the health status of an instance.
Constructor and Description |
---|
SetInstanceHealthRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.