Class VolumeStatusItem
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VolumeStatusItem
-
- All Implemented Interfaces:
Serializable,Cloneable
public class VolumeStatusItem extends Object implements Serializable, Cloneable
Describes the volume status.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolumeStatusItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeStatusItemclone()booleanequals(Object obj)List<VolumeStatusAction>getActions()The details of the operation.StringgetAvailabilityZone()The Availability Zone of the volume.List<VolumeStatusEvent>getEvents()A list of events associated with the volume.StringgetVolumeId()The volume ID.VolumeStatusInfogetVolumeStatus()The volume status.inthashCode()voidsetActions(Collection<VolumeStatusAction> actions)The details of the operation.voidsetAvailabilityZone(String availabilityZone)The Availability Zone of the volume.voidsetEvents(Collection<VolumeStatusEvent> events)A list of events associated with the volume.voidsetVolumeId(String volumeId)The volume ID.voidsetVolumeStatus(VolumeStatusInfo volumeStatus)The volume status.StringtoString()Returns a string representation of this object; useful for testing and debugging.VolumeStatusItemwithActions(VolumeStatusAction... actions)The details of the operation.VolumeStatusItemwithActions(Collection<VolumeStatusAction> actions)The details of the operation.VolumeStatusItemwithAvailabilityZone(String availabilityZone)The Availability Zone of the volume.VolumeStatusItemwithEvents(VolumeStatusEvent... events)A list of events associated with the volume.VolumeStatusItemwithEvents(Collection<VolumeStatusEvent> events)A list of events associated with the volume.VolumeStatusItemwithVolumeId(String volumeId)The volume ID.VolumeStatusItemwithVolumeStatus(VolumeStatusInfo volumeStatus)The volume status.
-
-
-
Method Detail
-
setVolumeId
public void setVolumeId(String volumeId)
The volume ID.
- Parameters:
volumeId- The volume ID.
-
getVolumeId
public String getVolumeId()
The volume ID.
- Returns:
- The volume ID.
-
withVolumeId
public VolumeStatusItem withVolumeId(String volumeId)
The volume ID.
- Parameters:
volumeId- The volume ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The Availability Zone of the volume.
- Parameters:
availabilityZone- The Availability Zone of the volume.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone of the volume.
- Returns:
- The Availability Zone of the volume.
-
withAvailabilityZone
public VolumeStatusItem withAvailabilityZone(String availabilityZone)
The Availability Zone of the volume.
- Parameters:
availabilityZone- The Availability Zone of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolumeStatus
public void setVolumeStatus(VolumeStatusInfo volumeStatus)
The volume status.
- Parameters:
volumeStatus- The volume status.
-
getVolumeStatus
public VolumeStatusInfo getVolumeStatus()
The volume status.
- Returns:
- The volume status.
-
withVolumeStatus
public VolumeStatusItem withVolumeStatus(VolumeStatusInfo volumeStatus)
The volume status.
- Parameters:
volumeStatus- The volume status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEvents
public List<VolumeStatusEvent> getEvents()
A list of events associated with the volume.
- Returns:
- A list of events associated with the volume.
-
setEvents
public void setEvents(Collection<VolumeStatusEvent> events)
A list of events associated with the volume.
- Parameters:
events- A list of events associated with the volume.
-
withEvents
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)orwithEvents(java.util.Collection)if you want to override the existing values.- Parameters:
events- A list of events associated with the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEvents
public VolumeStatusItem withEvents(Collection<VolumeStatusEvent> events)
A list of events associated with the volume.
- Parameters:
events- A list of events associated with the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getActions
public List<VolumeStatusAction> getActions()
The details of the operation.
- Returns:
- The details of the operation.
-
setActions
public void setActions(Collection<VolumeStatusAction> actions)
The details of the operation.
- Parameters:
actions- The details of the operation.
-
withActions
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)orwithActions(java.util.Collection)if you want to override the existing values.- Parameters:
actions- The details of the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withActions
public VolumeStatusItem withActions(Collection<VolumeStatusAction> actions)
The details of the operation.
- Parameters:
actions- The details of the operation.- 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 VolumeStatusItem clone()
-
-