Package com.amazonaws.services.ec2.model
Class InstanceStatusDetails
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceStatusDetails
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InstanceStatusDetails extends Object implements Serializable, Cloneable
Describes the instance status.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceStatusDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceStatusDetailsclone()booleanequals(Object obj)DategetImpairedSince()The time when a status check failed.StringgetName()The type of instance status.StringgetStatus()The status.inthashCode()voidsetImpairedSince(Date impairedSince)The time when a status check failed.voidsetName(StatusName name)The type of instance status.voidsetName(String name)The type of instance status.voidsetStatus(StatusType status)The status.voidsetStatus(String status)The status.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceStatusDetailswithImpairedSince(Date impairedSince)The time when a status check failed.InstanceStatusDetailswithName(StatusName name)The type of instance status.InstanceStatusDetailswithName(String name)The type of instance status.InstanceStatusDetailswithStatus(StatusType status)The status.InstanceStatusDetailswithStatus(String status)The status.
-
-
-
Method Detail
-
setName
public void setName(String name)
The type of instance status.
- Parameters:
name- The type of instance status.- See Also:
StatusName
-
getName
public String getName()
The type of instance status.
- Returns:
- The type of instance status.
- See Also:
StatusName
-
withName
public InstanceStatusDetails withName(String name)
The type of instance status.
- Parameters:
name- The type of instance status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StatusName
-
setName
public void setName(StatusName name)
The type of instance status.
- Parameters:
name- The type of instance status.- See Also:
StatusName
-
withName
public InstanceStatusDetails withName(StatusName name)
The type of instance status.
- Parameters:
name- The type of instance status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StatusName
-
setStatus
public void setStatus(String status)
The status.
- Parameters:
status- The status.- See Also:
StatusType
-
getStatus
public String getStatus()
The status.
- Returns:
- The status.
- See Also:
StatusType
-
withStatus
public InstanceStatusDetails withStatus(String status)
The status.
- Parameters:
status- The status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StatusType
-
setStatus
public void setStatus(StatusType status)
The status.
- Parameters:
status- The status.- See Also:
StatusType
-
withStatus
public InstanceStatusDetails withStatus(StatusType status)
The status.
- Parameters:
status- The status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StatusType
-
setImpairedSince
public void setImpairedSince(Date impairedSince)
The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
- Parameters:
impairedSince- The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
-
getImpairedSince
public Date getImpairedSince()
The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
- Returns:
- The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
-
withImpairedSince
public InstanceStatusDetails withImpairedSince(Date impairedSince)
The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.
- Parameters:
impairedSince- The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.- 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 InstanceStatusDetails clone()
-
-