Package com.amazonaws.services.ec2.model
Class VolumeStatusInfo
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VolumeStatusInfo
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VolumeStatusInfo extends Object implements Serializable, Cloneable
Describes the status of a volume.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolumeStatusInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeStatusInfo
clone()
boolean
equals(Object obj)
List<VolumeStatusDetails>
getDetails()
The details of the volume status.String
getStatus()
The status of the volume.int
hashCode()
void
setDetails(Collection<VolumeStatusDetails> details)
The details of the volume status.void
setStatus(VolumeStatusInfoStatus status)
The status of the volume.void
setStatus(String status)
The status of the volume.String
toString()
Returns a string representation of this object; useful for testing and debugging.VolumeStatusInfo
withDetails(VolumeStatusDetails... details)
The details of the volume status.VolumeStatusInfo
withDetails(Collection<VolumeStatusDetails> details)
The details of the volume status.VolumeStatusInfo
withStatus(VolumeStatusInfoStatus status)
The status of the volume.VolumeStatusInfo
withStatus(String status)
The status of the volume.
-
-
-
Method Detail
-
setStatus
public void setStatus(String status)
The status of the volume.
- Parameters:
status
- The status of the volume.- See Also:
VolumeStatusInfoStatus
-
getStatus
public String getStatus()
The status of the volume.
- Returns:
- The status of the volume.
- See Also:
VolumeStatusInfoStatus
-
withStatus
public VolumeStatusInfo withStatus(String status)
The status of the volume.
- Parameters:
status
- The status of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VolumeStatusInfoStatus
-
setStatus
public void setStatus(VolumeStatusInfoStatus status)
The status of the volume.
- Parameters:
status
- The status of the volume.- See Also:
VolumeStatusInfoStatus
-
withStatus
public VolumeStatusInfo withStatus(VolumeStatusInfoStatus status)
The status of the volume.
- Parameters:
status
- The status of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VolumeStatusInfoStatus
-
getDetails
public List<VolumeStatusDetails> getDetails()
The details of the volume status.
- Returns:
- The details of the volume status.
-
setDetails
public void setDetails(Collection<VolumeStatusDetails> details)
The details of the volume status.
- Parameters:
details
- The details of the volume status.
-
withDetails
public VolumeStatusInfo withDetails(VolumeStatusDetails... details)
The details of the volume status.
NOTE: This method appends the values to the existing list (if any). Use
setDetails(java.util.Collection)
orwithDetails(java.util.Collection)
if you want to override the existing values.- Parameters:
details
- The details of the volume status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDetails
public VolumeStatusInfo withDetails(Collection<VolumeStatusDetails> details)
The details of the volume status.
- Parameters:
details
- The details of the volume status.- 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 VolumeStatusInfo clone()
-
-