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 VolumeStatusItem
clone()
boolean
equals(Object obj)
List<VolumeStatusAction>
getActions()
The details of the operation.String
getAvailabilityZone()
The Availability Zone of the volume.List<VolumeStatusEvent>
getEvents()
A list of events associated with the volume.String
getVolumeId()
The volume ID.VolumeStatusInfo
getVolumeStatus()
The volume status.int
hashCode()
void
setActions(Collection<VolumeStatusAction> actions)
The details of the operation.void
setAvailabilityZone(String availabilityZone)
The Availability Zone of the volume.void
setEvents(Collection<VolumeStatusEvent> events)
A list of events associated with the volume.void
setVolumeId(String volumeId)
The volume ID.void
setVolumeStatus(VolumeStatusInfo volumeStatus)
The volume status.String
toString()
Returns a string representation of this object; useful for testing and debugging.VolumeStatusItem
withActions(VolumeStatusAction... actions)
The details of the operation.VolumeStatusItem
withActions(Collection<VolumeStatusAction> actions)
The details of the operation.VolumeStatusItem
withAvailabilityZone(String availabilityZone)
The Availability Zone of the volume.VolumeStatusItem
withEvents(VolumeStatusEvent... events)
A list of events associated with the volume.VolumeStatusItem
withEvents(Collection<VolumeStatusEvent> events)
A list of events associated with the volume.VolumeStatusItem
withVolumeId(String volumeId)
The volume ID.VolumeStatusItem
withVolumeStatus(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VolumeStatusItem clone()
-
-