Class VolumeDetail

java.lang.Object
com.amazonaws.services.ec2.model.VolumeDetail
All Implemented Interfaces:
Serializable, Cloneable

public class VolumeDetail extends Object implements Serializable, Cloneable

Describes an EBS volume.

See Also:
  • Constructor Details

    • VolumeDetail

      public VolumeDetail()
  • Method Details

    • setSize

      public void setSize(Long size)

      The size of the volume, in GiB.

      Parameters:
      size - The size of the volume, in GiB.
    • getSize

      public Long getSize()

      The size of the volume, in GiB.

      Returns:
      The size of the volume, in GiB.
    • withSize

      public VolumeDetail withSize(Long size)

      The size of the volume, in GiB.

      Parameters:
      size - The size of the volume, in GiB.
      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 VolumeDetail clone()
      Overrides:
      clone in class Object