public class VolumeStatusInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the status of a volume.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<VolumeStatusDetails> |
details
The details of the volume status.
|
private java.lang.String |
status
The status of the volume.
|
Constructor and Description |
---|
VolumeStatusInfo() |
Modifier and Type | Method and Description |
---|---|
VolumeStatusInfo |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<VolumeStatusDetails> |
getDetails()
The details of the volume status.
|
java.lang.String |
getStatus()
The status of the volume.
|
int |
hashCode() |
void |
setDetails(java.util.Collection<VolumeStatusDetails> details)
The details of the volume status.
|
void |
setStatus(java.lang.String status)
The status of the volume.
|
void |
setStatus(VolumeStatusInfoStatus status)
The status of the volume.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VolumeStatusInfo |
withDetails(java.util.Collection<VolumeStatusDetails> details)
The details of the volume status.
|
VolumeStatusInfo |
withDetails(VolumeStatusDetails... details)
The details of the volume status.
|
VolumeStatusInfo |
withStatus(java.lang.String status)
The status of the volume.
|
VolumeStatusInfo |
withStatus(VolumeStatusInfoStatus status)
The status of the volume.
|
private java.lang.String status
The status of the volume.
private SdkInternalList<VolumeStatusDetails> details
The details of the volume status.
public void setStatus(java.lang.String status)
The status of the volume.
status
- The status of the volume.VolumeStatusInfoStatus
public java.lang.String getStatus()
The status of the volume.
VolumeStatusInfoStatus
public VolumeStatusInfo withStatus(java.lang.String status)
The status of the volume.
status
- The status of the volume.VolumeStatusInfoStatus
public void setStatus(VolumeStatusInfoStatus status)
The status of the volume.
status
- The status of the volume.VolumeStatusInfoStatus
public VolumeStatusInfo withStatus(VolumeStatusInfoStatus status)
The status of the volume.
status
- The status of the volume.VolumeStatusInfoStatus
public java.util.List<VolumeStatusDetails> getDetails()
The details of the volume status.
public void setDetails(java.util.Collection<VolumeStatusDetails> details)
The details of the volume status.
details
- The details of the volume status.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)
or
withDetails(java.util.Collection)
if you want to override the
existing values.
details
- The details of the volume status.public VolumeStatusInfo withDetails(java.util.Collection<VolumeStatusDetails> details)
The details of the volume status.
details
- The details of the volume status.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VolumeStatusInfo clone()
clone
in class java.lang.Object