Class InstanceStatus
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the status of an instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Availability Zone of the instance.Any scheduled events associated with the instance.The ID of the instance.The intended state of the instance.Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.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
(String availabilityZone) The Availability Zone of the instance.void
setEvents
(Collection<InstanceStatusEvent> events) Any scheduled events associated with the instance.void
setInstanceId
(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.toString()
Returns a string representation of this object; useful for testing and debugging.withAvailabilityZone
(String availabilityZone) The Availability Zone of the instance.withEvents
(InstanceStatusEvent... events) Any scheduled events associated with the instance.withEvents
(Collection<InstanceStatusEvent> events) Any scheduled events associated with the instance.withInstanceId
(String instanceId) The ID of the instance.withInstanceState
(InstanceState instanceState) The intended state of the instance.withInstanceStatus
(InstanceStatusSummary instanceStatus) Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.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.
-
Constructor Details
-
InstanceStatus
public InstanceStatus()
-
-
Method Details
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
The Availability Zone of the instance.
- Parameters:
availabilityZone
- The Availability Zone of the instance.
-
getAvailabilityZone
The Availability Zone of the instance.
- Returns:
- The Availability Zone of the instance.
-
withAvailabilityZone
The Availability Zone of the instance.
- Parameters:
availabilityZone
- The Availability Zone of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEvents
Any scheduled events associated with the instance.
- Returns:
- Any scheduled events associated with the instance.
-
setEvents
Any scheduled events associated with the instance.
- Parameters:
events
- Any scheduled events associated with the instance.
-
withEvents
Any scheduled events associated with the instance.
NOTE: This method appends the values to the existing list (if any). Use
setEvents(java.util.Collection)
orwithEvents(java.util.Collection)
if you want to override the existing values.- Parameters:
events
- Any scheduled events associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEvents
Any scheduled events associated with the instance.
- Parameters:
events
- Any scheduled events associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceState
The intended state of the instance. DescribeInstanceStatus requires that an instance be in the
running
state.- Parameters:
instanceState
- The intended state of the instance. DescribeInstanceStatus requires that an instance be in therunning
state.
-
getInstanceState
The intended state of the instance. DescribeInstanceStatus requires that an instance be in the
running
state.- Returns:
- The intended state of the instance. DescribeInstanceStatus
requires that an instance be in the
running
state.
-
withInstanceState
The intended state of the instance. DescribeInstanceStatus requires that an instance be in the
running
state.- Parameters:
instanceState
- The intended state of the instance. DescribeInstanceStatus requires that an instance be in therunning
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSystemStatus
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
- Parameters:
systemStatus
- Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
-
getSystemStatus
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
- Returns:
- Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
-
withSystemStatus
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
- Parameters:
systemStatus
- Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceStatus
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
- Parameters:
instanceStatus
- Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
-
getInstanceStatus
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
- Returns:
- Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
-
withInstanceStatus
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
- Parameters:
instanceStatus
- Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-