public class VolumeStatusInfo extends Object implements Serializable, Cloneable
Describes the status of a volume.
| Constructor and Description |
|---|
VolumeStatusInfo() |
| Modifier and Type | Method and 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(String status)
The status of the volume.
|
void |
setStatus(VolumeStatusInfoStatus status)
The status of the volume.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VolumeStatusInfo |
withDetails(Collection<VolumeStatusDetails> details)
The details of the volume status.
|
VolumeStatusInfo |
withDetails(VolumeStatusDetails... details)
The details of the volume status.
|
VolumeStatusInfo |
withStatus(String status)
The status of the volume.
|
VolumeStatusInfo |
withStatus(VolumeStatusInfoStatus status)
The status of the volume.
|
public String getStatus()
Constraints:
Allowed Values: ok, impaired, insufficient-data
VolumeStatusInfoStatuspublic void setStatus(String status)
Constraints:
Allowed Values: ok, impaired, insufficient-data
status - The status of the volume.VolumeStatusInfoStatuspublic VolumeStatusInfo withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ok, impaired, insufficient-data
status - The status of the volume.VolumeStatusInfoStatuspublic void setStatus(VolumeStatusInfoStatus status)
Constraints:
Allowed Values: ok, impaired, insufficient-data
status - The status of the volume.VolumeStatusInfoStatuspublic VolumeStatusInfo withStatus(VolumeStatusInfoStatus status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ok, impaired, insufficient-data
status - The status of the volume.VolumeStatusInfoStatuspublic List<VolumeStatusDetails> getDetails()
public void setDetails(Collection<VolumeStatusDetails> details)
details - The details of the volume status.public VolumeStatusInfo withDetails(VolumeStatusDetails... details)
NOTE: This method appends the values to the existing list (if
any). Use setDetails(java.util.Collection) or withDetails(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
details - The details of the volume status.public VolumeStatusInfo withDetails(Collection<VolumeStatusDetails> details)
Returns a reference to this object so that method calls can be chained together.
details - The details of the volume status.public String toString()
toString in class ObjectObject.toString()public VolumeStatusInfo clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.