public class InstanceStatus extends Object implements Serializable
Represents the status of an Amazon EC2 instance.
Constructor and Description |
---|
InstanceStatus() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
InstanceStatusSummary |
getInstanceStatus()
Returns the value of the InstanceStatus property for this object.
|
InstanceStatusSummary |
getSystemStatus()
Returns the value of the SystemStatus property for this object.
|
int |
hashCode() |
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.
|
void |
setInstanceStatus(InstanceStatusSummary instanceStatus)
Sets the value of the InstanceStatus property for this object.
|
void |
setSystemStatus(InstanceStatusSummary systemStatus)
Sets the value of the SystemStatus property for this object.
|
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.
|
InstanceStatus |
withInstanceStatus(InstanceStatusSummary instanceStatus)
Sets the value of the InstanceStatus property for this object.
|
InstanceStatus |
withSystemStatus(InstanceStatusSummary systemStatus)
Sets the value of the SystemStatus property for this object.
|
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 InstanceStatusSummary getSystemStatus()
public void setSystemStatus(InstanceStatusSummary systemStatus)
systemStatus
- The new value for the SystemStatus property for this object.public InstanceStatus withSystemStatus(InstanceStatusSummary systemStatus)
Returns a reference to this object so that method calls can be chained together.
systemStatus
- The new value for the SystemStatus property for this object.public InstanceStatusSummary getInstanceStatus()
public void setInstanceStatus(InstanceStatusSummary instanceStatus)
instanceStatus
- The new value for the InstanceStatus property for this object.public InstanceStatus withInstanceStatus(InstanceStatusSummary instanceStatus)
Returns a reference to this object so that method calls can be chained together.
instanceStatus
- The new value for the InstanceStatus property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.