public class InstanceStatus
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the status of an instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The Availability Zone of the instance.
|
private SdkInternalList<InstanceStatusEvent> |
events
Any scheduled events associated with the instance.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private InstanceState |
instanceState
The intended state of the instance.
|
private InstanceStatusSummary |
instanceStatus
Reports impaired functionality that stems from issues internal to the
instance, such as impaired reachability.
|
private InstanceStatusSummary |
systemStatus
Reports impaired functionality that stems from issues related to the
systems that support an instance, such as hardware failures and network
connectivity problems.
|
Constructor and Description |
---|
InstanceStatus() |
Modifier and Type | Method and Description |
---|---|
InstanceStatus |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone of the instance.
|
java.util.List<InstanceStatusEvent> |
getEvents()
Any scheduled events associated with the instance.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
InstanceState |
getInstanceState()
The intended state of the instance.
|
InstanceStatusSummary |
getInstanceStatus()
Reports impaired functionality that stems from issues internal to the
instance, such as impaired reachability.
|
InstanceStatusSummary |
getSystemStatus()
Reports impaired functionality that stems from issues related to the
systems that support an instance, such as hardware failures and network
connectivity problems.
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.
|
void |
setEvents(java.util.Collection<InstanceStatusEvent> events)
Any scheduled events associated with the instance.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setInstanceState(InstanceState instanceState)
The intended state of the instance.
|
void |
setInstanceStatus(InstanceStatusSummary instanceStatus)
Reports impaired functionality that stems from issues internal to the
instance, such as impaired reachability.
|
void |
setSystemStatus(InstanceStatusSummary systemStatus)
Reports impaired functionality that stems from issues related to the
systems that support an instance, such as hardware failures and network
connectivity problems.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceStatus |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.
|
InstanceStatus |
withEvents(java.util.Collection<InstanceStatusEvent> events)
Any scheduled events associated with the instance.
|
InstanceStatus |
withEvents(InstanceStatusEvent... events)
Any scheduled events associated with the instance.
|
InstanceStatus |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
InstanceStatus |
withInstanceState(InstanceState instanceState)
The intended state of the instance.
|
InstanceStatus |
withInstanceStatus(InstanceStatusSummary instanceStatus)
Reports impaired functionality that stems from issues internal to the
instance, such as impaired reachability.
|
InstanceStatus |
withSystemStatus(InstanceStatusSummary systemStatus)
Reports impaired functionality that stems from issues related to the
systems that support an instance, such as hardware failures and network
connectivity problems.
|
private java.lang.String instanceId
The ID of the instance.
private java.lang.String availabilityZone
The Availability Zone of the instance.
private SdkInternalList<InstanceStatusEvent> events
Any scheduled events associated with the instance.
private InstanceState instanceState
The intended state of the instance. DescribeInstanceStatus
requires that an instance be in the running
state.
private InstanceStatusSummary systemStatus
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
private InstanceStatusSummary instanceStatus
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public InstanceStatus withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.
availabilityZone
- The Availability Zone of the instance.public java.lang.String getAvailabilityZone()
The Availability Zone of the instance.
public InstanceStatus withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.
availabilityZone
- The Availability Zone of the instance.public java.util.List<InstanceStatusEvent> getEvents()
Any scheduled events associated with the instance.
public void setEvents(java.util.Collection<InstanceStatusEvent> events)
Any scheduled events associated with the instance.
events
- Any scheduled events associated with the instance.public InstanceStatus withEvents(InstanceStatusEvent... events)
Any scheduled events associated with the instance.
NOTE: This method appends the values to the existing list (if
any). Use setEvents(java.util.Collection)
or
withEvents(java.util.Collection)
if you want to override the
existing values.
events
- Any scheduled events associated with the instance.public InstanceStatus withEvents(java.util.Collection<InstanceStatusEvent> events)
Any scheduled events associated with the instance.
events
- Any scheduled events associated with the instance.public void setInstanceState(InstanceState instanceState)
The intended state of the instance. DescribeInstanceStatus
requires that an instance be in the running
state.
instanceState
- The intended state of the instance. DescribeInstanceStatus
requires that an instance be in the running
state.public InstanceState getInstanceState()
The intended state of the instance. DescribeInstanceStatus
requires that an instance be in the running
state.
running
state.public InstanceStatus withInstanceState(InstanceState instanceState)
The intended state of the instance. DescribeInstanceStatus
requires that an instance be in the running
state.
instanceState
- The intended state of the instance. DescribeInstanceStatus
requires that an instance be in the running
state.public void setSystemStatus(InstanceStatusSummary systemStatus)
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
systemStatus
- Reports impaired functionality that stems from issues related to
the systems that support an instance, such as hardware failures
and network connectivity problems.public InstanceStatusSummary getSystemStatus()
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
public InstanceStatus withSystemStatus(InstanceStatusSummary systemStatus)
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
systemStatus
- Reports impaired functionality that stems from issues related to
the systems that support an instance, such as hardware failures
and network connectivity problems.public void setInstanceStatus(InstanceStatusSummary instanceStatus)
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
instanceStatus
- Reports impaired functionality that stems from issues internal to
the instance, such as impaired reachability.public InstanceStatusSummary getInstanceStatus()
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
public InstanceStatus withInstanceStatus(InstanceStatusSummary instanceStatus)
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
instanceStatus
- Reports impaired functionality that stems from issues internal to
the instance, such as impaired reachability.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceStatus clone()
clone
in class java.lang.Object