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:
  • Constructor Details

    • VolumeStatusItem

      public VolumeStatusItem()
  • Method Details

    • 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) or withEvents(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) or withActions(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public VolumeStatusItem clone()
      Overrides:
      clone in class Object