|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.InstanceStatus
public class InstanceStatus
Represents the status of an Amazon EC2 instance.
Constructor Summary | |
---|---|
InstanceStatus()
|
Method Summary | |
---|---|
String |
getAvailabilityZone()
The Amazon EC2 instance's availability zone. |
List<InstanceStatusEvent> |
getEvents()
Events that affect the status of the associated Amazon EC2 instance. |
String |
getInstanceId()
The ID of the Amazon EC2 instance. |
InstanceState |
getInstanceState()
Represents the state of an Amazon EC2 instance. |
void |
setAvailabilityZone(String availabilityZone)
The Amazon EC2 instance's availability zone. |
void |
setEvents(Collection<InstanceStatusEvent> events)
Events that affect the status of the associated Amazon EC2 instance. |
void |
setInstanceId(String instanceId)
The ID of the Amazon EC2 instance. |
void |
setInstanceState(InstanceState instanceState)
Represents the state of an Amazon EC2 instance. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
InstanceStatus |
withAvailabilityZone(String availabilityZone)
The Amazon EC2 instance's availability zone. |
InstanceStatus |
withEvents(Collection<InstanceStatusEvent> events)
Events that affect the status of the associated Amazon EC2 instance. |
InstanceStatus |
withEvents(InstanceStatusEvent... events)
Events that affect the status of the associated Amazon EC2 instance. |
InstanceStatus |
withInstanceId(String instanceId)
The ID of the Amazon EC2 instance. |
InstanceStatus |
withInstanceState(InstanceState instanceState)
Represents the state of an Amazon EC2 instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceStatus()
Method Detail |
---|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the Amazon EC2 instance.public InstanceStatus withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the Amazon EC2 instance.
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Amazon EC2 instance's availability zone.public InstanceStatus withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Amazon EC2 instance's availability zone.
public List<InstanceStatusEvent> getEvents()
public void setEvents(Collection<InstanceStatusEvent> events)
events
- Events that affect the status of the associated Amazon EC2 instance.public InstanceStatus withEvents(InstanceStatusEvent... events)
Returns a reference to this object so that method calls can be chained together.
events
- Events that affect the status of the associated Amazon EC2 instance.
public InstanceStatus withEvents(Collection<InstanceStatusEvent> events)
Returns a reference to this object so that method calls can be chained together.
events
- Events that affect the status of the associated Amazon EC2 instance.
public InstanceState getInstanceState()
public void setInstanceState(InstanceState instanceState)
instanceState
- Represents the state of an Amazon EC2 instance.public InstanceStatus withInstanceState(InstanceState instanceState)
Returns a reference to this object so that method calls can be chained together.
instanceState
- Represents the state of an Amazon EC2 instance.
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |