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 InstanceStatusclone()booleanequals(Object obj)StringgetAvailabilityZone()The Availability Zone of the instance.List<InstanceStatusEvent>getEvents()Any scheduled events associated with the instance.StringgetInstanceId()The ID of the instance.InstanceStategetInstanceState()The intended state of the instance.InstanceStatusSummarygetInstanceStatus()Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.InstanceStatusSummarygetSystemStatus()Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.inthashCode()voidsetAvailabilityZone(String availabilityZone)The Availability Zone of the instance.voidsetEvents(Collection<InstanceStatusEvent> events)Any scheduled events associated with the instance.voidsetInstanceId(String instanceId)The ID of the instance.voidsetInstanceState(InstanceState instanceState)The intended state of the instance.voidsetInstanceStatus(InstanceStatusSummary instanceStatus)Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.voidsetSystemStatus(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.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceStatuswithAvailabilityZone(String availabilityZone)The Availability Zone of the instance.InstanceStatuswithEvents(InstanceStatusEvent... events)Any scheduled events associated with the instance.InstanceStatuswithEvents(Collection<InstanceStatusEvent> events)Any scheduled events associated with the instance.InstanceStatuswithInstanceId(String instanceId)The ID of the instance.InstanceStatuswithInstanceState(InstanceState instanceState)The intended state of the instance.InstanceStatuswithInstanceStatus(InstanceStatusSummary instanceStatus)Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.InstanceStatuswithSystemStatus(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
runningstate.- Parameters:
instanceState- The intended state of the instance. DescribeInstanceStatus requires that an instance be in therunningstate.
-
getInstanceState
public InstanceState getInstanceState()
The intended state of the instance. DescribeInstanceStatus requires that an instance be in the
runningstate.- Returns:
- The intended state of the instance. DescribeInstanceStatus
requires that an instance be in the
runningstate.
-
withInstanceState
public InstanceStatus withInstanceState(InstanceState instanceState)
The intended state of the instance. DescribeInstanceStatus requires that an instance be in the
runningstate.- Parameters:
instanceState- The intended state of the instance. DescribeInstanceStatus requires that an instance be in therunningstate.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceStatus clone()
-
-