Class InstanceStatus
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceStatus
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceStatus extends Object implements Serializable, Cloneable
Describes the status of an instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceStatus
clone()
boolean
equals(Object obj)
String
getAvailabilityZone()
The Availability Zone of the instance.List<InstanceStatusEvent>
getEvents()
Any scheduled events associated with the instance.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(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.String
toString()
Returns a string representation of this object; useful for testing and debugging.InstanceStatus
withAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.InstanceStatus
withEvents(InstanceStatusEvent... events)
Any scheduled events associated with the instance.InstanceStatus
withEvents(Collection<InstanceStatusEvent> events)
Any scheduled events associated with the instance.InstanceStatus
withInstanceId(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.
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public InstanceStatus withInstanceId(String instanceId)
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
public void setAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
- Parameters:
availabilityZone
- The Availability Zone of the instance.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone of the instance.
- Returns:
- The Availability Zone of the instance.
-
withAvailabilityZone
public InstanceStatus withAvailabilityZone(String availabilityZone)
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
public List<InstanceStatusEvent> getEvents()
Any scheduled events associated with the instance.
- Returns:
- Any scheduled events associated with the instance.
-
setEvents
public void setEvents(Collection<InstanceStatusEvent> events)
Any scheduled events associated with the instance.
- Parameters:
events
- Any scheduled events associated with the instance.
-
withEvents
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)
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
public InstanceStatus withEvents(Collection<InstanceStatusEvent> events)
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
public void setInstanceState(InstanceState instanceState)
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
public InstanceState 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
public InstanceStatus withInstanceState(InstanceState instanceState)
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
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.
- 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
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.
- 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
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.
- 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
public void setInstanceStatus(InstanceStatusSummary instanceStatus)
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
public InstanceStatusSummary 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
public InstanceStatus withInstanceStatus(InstanceStatusSummary instanceStatus)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceStatus clone()
-
-