public class VolumeStatusItem
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the volume status.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<VolumeStatusAction> |
actions
The details of the operation.
|
private java.lang.String |
availabilityZone
The Availability Zone of the volume.
|
private SdkInternalList<VolumeStatusEvent> |
events
A list of events associated with the volume.
|
private java.lang.String |
volumeId
The volume ID.
|
private VolumeStatusInfo |
volumeStatus
The volume status.
|
Constructor and Description |
---|
VolumeStatusItem() |
Modifier and Type | Method and Description |
---|---|
VolumeStatusItem |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<VolumeStatusAction> |
getActions()
The details of the operation.
|
java.lang.String |
getAvailabilityZone()
The Availability Zone of the volume.
|
java.util.List<VolumeStatusEvent> |
getEvents()
A list of events associated with the volume.
|
java.lang.String |
getVolumeId()
The volume ID.
|
VolumeStatusInfo |
getVolumeStatus()
The volume status.
|
int |
hashCode() |
void |
setActions(java.util.Collection<VolumeStatusAction> actions)
The details of the operation.
|
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the volume.
|
void |
setEvents(java.util.Collection<VolumeStatusEvent> events)
A list of events associated with the volume.
|
void |
setVolumeId(java.lang.String volumeId)
The volume ID.
|
void |
setVolumeStatus(VolumeStatusInfo volumeStatus)
The volume status.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VolumeStatusItem |
withActions(java.util.Collection<VolumeStatusAction> actions)
The details of the operation.
|
VolumeStatusItem |
withActions(VolumeStatusAction... actions)
The details of the operation.
|
VolumeStatusItem |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the volume.
|
VolumeStatusItem |
withEvents(java.util.Collection<VolumeStatusEvent> events)
A list of events associated with the volume.
|
VolumeStatusItem |
withEvents(VolumeStatusEvent... events)
A list of events associated with the volume.
|
VolumeStatusItem |
withVolumeId(java.lang.String volumeId)
The volume ID.
|
VolumeStatusItem |
withVolumeStatus(VolumeStatusInfo volumeStatus)
The volume status.
|
private java.lang.String volumeId
The volume ID.
private java.lang.String availabilityZone
The Availability Zone of the volume.
private VolumeStatusInfo volumeStatus
The volume status.
private SdkInternalList<VolumeStatusEvent> events
A list of events associated with the volume.
private SdkInternalList<VolumeStatusAction> actions
The details of the operation.
public void setVolumeId(java.lang.String volumeId)
The volume ID.
volumeId
- The volume ID.public java.lang.String getVolumeId()
The volume ID.
public VolumeStatusItem withVolumeId(java.lang.String volumeId)
The volume ID.
volumeId
- The volume ID.public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the volume.
availabilityZone
- The Availability Zone of the volume.public java.lang.String getAvailabilityZone()
The Availability Zone of the volume.
public VolumeStatusItem withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the volume.
availabilityZone
- The Availability Zone of the volume.public void setVolumeStatus(VolumeStatusInfo volumeStatus)
The volume status.
volumeStatus
- The volume status.public VolumeStatusInfo getVolumeStatus()
The volume status.
public VolumeStatusItem withVolumeStatus(VolumeStatusInfo volumeStatus)
The volume status.
volumeStatus
- The volume status.public java.util.List<VolumeStatusEvent> getEvents()
A list of events associated with the volume.
public void setEvents(java.util.Collection<VolumeStatusEvent> events)
A list of events associated with the volume.
events
- A list of events associated with the volume.public VolumeStatusItem withEvents(VolumeStatusEvent... events)
A list of events associated with the volume.
NOTE: This method appends the values to the existing list (if
any). Use setEvents(java.util.Collection)
or
withEvents(java.util.Collection)
if you want to override the
existing values.
events
- A list of events associated with the volume.public VolumeStatusItem withEvents(java.util.Collection<VolumeStatusEvent> events)
A list of events associated with the volume.
events
- A list of events associated with the volume.public java.util.List<VolumeStatusAction> getActions()
The details of the operation.
public void setActions(java.util.Collection<VolumeStatusAction> actions)
The details of the operation.
actions
- The details of the operation.public VolumeStatusItem withActions(VolumeStatusAction... actions)
The details of the operation.
NOTE: This method appends the values to the existing list (if
any). Use setActions(java.util.Collection)
or
withActions(java.util.Collection)
if you want to override the
existing values.
actions
- The details of the operation.public VolumeStatusItem withActions(java.util.Collection<VolumeStatusAction> actions)
The details of the operation.
actions
- The details of the operation.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 VolumeStatusItem clone()
clone
in class java.lang.Object