java.lang.Object
com.amazonaws.services.elasticmapreduce.model.EbsVolume
All Implemented Interfaces:
Serializable, Cloneable

public class EbsVolume extends Object implements Serializable, Cloneable

EBS block device that's attached to an EC2 instance.

See Also:
  • Constructor Details

    • EbsVolume

      public EbsVolume()
  • Method Details

    • setDevice

      public void setDevice(String device)

      The device name that is exposed to the instance, such as /dev/sdh.

      Parameters:
      device - The device name that is exposed to the instance, such as /dev/sdh.
    • getDevice

      public String getDevice()

      The device name that is exposed to the instance, such as /dev/sdh.

      Returns:
      The device name that is exposed to the instance, such as /dev/sdh.
    • withDevice

      public EbsVolume withDevice(String device)

      The device name that is exposed to the instance, such as /dev/sdh.

      Parameters:
      device - The device name that is exposed to the instance, such as /dev/sdh.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVolumeId

      public void setVolumeId(String volumeId)

      The volume identifier of the EBS volume.

      Parameters:
      volumeId - The volume identifier of the EBS volume.
    • getVolumeId

      public String getVolumeId()

      The volume identifier of the EBS volume.

      Returns:
      The volume identifier of the EBS volume.
    • withVolumeId

      public EbsVolume withVolumeId(String volumeId)

      The volume identifier of the EBS volume.

      Parameters:
      volumeId - The volume identifier of the EBS volume.
      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 EbsVolume clone()
      Overrides:
      clone in class Object