|
||||||||||
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(Object obj)
|
String |
getDescription()
Provides a description of the instance state. |
String |
getInstanceId()
Provides an EC2 instance ID. |
String |
getReasonCode()
Provides information about the cause of OutOfService instances. |
String |
getState()
Specifies the current state of the instance. |
int |
hashCode()
|
void |
setDescription(String description)
Provides a description of the instance state. |
void |
setInstanceId(String instanceId)
Provides an EC2 instance ID. |
void |
setReasonCode(String reasonCode)
Provides information about the cause of OutOfService instances. |
void |
setState(String state)
Specifies the current state of the instance. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
InstanceState |
withDescription(String description)
Provides a description of the instance state. |
InstanceState |
withInstanceId(String instanceId)
Provides an EC2 instance ID. |
InstanceState |
withReasonCode(String reasonCode)
Provides information about the cause of OutOfService instances. |
InstanceState |
withState(String state)
Specifies the current state of the instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceState()
Method Detail |
---|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- Provides an EC2 instance ID.public InstanceState withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- Provides an EC2 instance ID.
public String getState()
Valid value:
InService
|OutOfService
Valid value:
InService
|OutOfService
public void setState(String state)
Valid value:
InService
|OutOfService
state
- Specifies the current state of the instance. Valid value:
InService
|OutOfService
public InstanceState withState(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 String getReasonCode()
Valid value:
ELB
|Instance
|N/A
Valid value:
ELB
|Instance
|N/A
public void setReasonCode(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(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 String getDescription()
public void setDescription(String description)
description
- Provides a description of the instance state.public InstanceState withDescription(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 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 |