|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.elasticloadbalancing.model.InstanceState
public class InstanceState
The InstanceState data type.
Constructor Summary | |
---|---|
InstanceState()
Default constructor for a new InstanceState object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDescription()
Provides a description of the instance state. |
java.lang.String |
getInstanceId()
Provides an EC2 instance ID. |
java.lang.String |
getReasonCode()
Provides information about the cause of OutOfService instances. |
java.lang.String |
getState()
Specifies the current state of the instance. |
int |
hashCode()
|
void |
setDescription(java.lang.String description)
Provides a description of the instance state. |
void |
setInstanceId(java.lang.String instanceId)
Provides an EC2 instance ID. |
void |
setReasonCode(java.lang.String reasonCode)
Provides information about the cause of OutOfService instances. |
void |
setState(java.lang.String state)
Specifies the current state of the instance. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
InstanceState |
withDescription(java.lang.String description)
Provides a description of the instance state. |
InstanceState |
withInstanceId(java.lang.String instanceId)
Provides an EC2 instance ID. |
InstanceState |
withReasonCode(java.lang.String reasonCode)
Provides information about the cause of OutOfService instances. |
InstanceState |
withState(java.lang.String state)
Specifies the current state of the instance. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceState()
Method Detail |
---|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- Provides an EC2 instance ID.public InstanceState withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- Provides an EC2 instance ID.
public java.lang.String getState()
Valid value:
InService
|OutOfService
Valid value:
InService
|OutOfService
public void setState(java.lang.String state)
Valid value:
InService
|OutOfService
state
- Specifies the current state of the instance. Valid value:
InService
|OutOfService
public InstanceState withState(java.lang.String state)
Valid value:
InService
|OutOfService
Returns a reference to this object so that method calls can be chained together.
state
- Specifies the current state of the instance. Valid value:
InService
|OutOfService
public java.lang.String getReasonCode()
Valid value:
ELB
|Instance
|N/A
Valid value:
ELB
|Instance
|N/A
public void setReasonCode(java.lang.String reasonCode)
Valid value:
ELB
|Instance
|N/A
reasonCode
- Provides information about the cause of OutOfService instances.
Specifically, it indicates whether the cause is Elastic Load Balancing
or the instance behind the load balancer. Valid value:
ELB
|Instance
|N/A
public InstanceState withReasonCode(java.lang.String reasonCode)
Valid value:
ELB
|Instance
|N/A
Returns a reference to this object so that method calls can be chained together.
reasonCode
- Provides information about the cause of OutOfService instances.
Specifically, it indicates whether the cause is Elastic Load Balancing
or the instance behind the load balancer. Valid value:
ELB
|Instance
|N/A
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- Provides a description of the instance state.public InstanceState withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- Provides a description of the instance state.
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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |