Class EbsBlockDevice

java.lang.Object
com.amazonaws.services.opsworks.model.EbsBlockDevice
All Implemented Interfaces:
Serializable, Cloneable

public class EbsBlockDevice extends Object implements Serializable, Cloneable

Describes an Amazon EBS volume. This data type maps directly to the Amazon EC2 EbsBlockDevice data type.

See Also:
  • Constructor Details

    • EbsBlockDevice

      public EbsBlockDevice()
  • Method Details

    • setSnapshotId

      public void setSnapshotId(String snapshotId)

      The snapshot ID.

      Parameters:
      snapshotId - The snapshot ID.
    • getSnapshotId

      public String getSnapshotId()

      The snapshot ID.

      Returns:
      The snapshot ID.
    • withSnapshotId

      public EbsBlockDevice withSnapshotId(String snapshotId)

      The snapshot ID.

      Parameters:
      snapshotId - The snapshot ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setIops

      public void setIops(Integer iops)

      The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.

      Parameters:
      iops - The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
    • getIops

      public Integer getIops()

      The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.

      Returns:
      The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
    • withIops

      public EbsBlockDevice withIops(Integer iops)

      The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.

      Parameters:
      iops - The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVolumeSize

      public void setVolumeSize(Integer volumeSize)

      The volume size, in GiB. For more information, see EbsBlockDevice.

      Parameters:
      volumeSize - The volume size, in GiB. For more information, see EbsBlockDevice.
    • getVolumeSize

      public Integer getVolumeSize()

      The volume size, in GiB. For more information, see EbsBlockDevice.

      Returns:
      The volume size, in GiB. For more information, see EbsBlockDevice.
    • withVolumeSize

      public EbsBlockDevice withVolumeSize(Integer volumeSize)

      The volume size, in GiB. For more information, see EbsBlockDevice.

      Parameters:
      volumeSize - The volume size, in GiB. For more information, see EbsBlockDevice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVolumeType

      public void setVolumeType(String volumeType)

      The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.

      Parameters:
      volumeType - The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
      See Also:
    • getVolumeType

      public String getVolumeType()

      The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.

      Returns:
      The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
      See Also:
    • withVolumeType

      public EbsBlockDevice withVolumeType(String volumeType)

      The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.

      Parameters:
      volumeType - The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setVolumeType

      public void setVolumeType(VolumeType volumeType)

      The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.

      Parameters:
      volumeType - The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
      See Also:
    • withVolumeType

      public EbsBlockDevice withVolumeType(VolumeType volumeType)

      The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.

      Parameters:
      volumeType - The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setDeleteOnTermination

      public void setDeleteOnTermination(Boolean deleteOnTermination)

      Whether the volume is deleted on instance termination.

      Parameters:
      deleteOnTermination - Whether the volume is deleted on instance termination.
    • getDeleteOnTermination

      public Boolean getDeleteOnTermination()

      Whether the volume is deleted on instance termination.

      Returns:
      Whether the volume is deleted on instance termination.
    • withDeleteOnTermination

      public EbsBlockDevice withDeleteOnTermination(Boolean deleteOnTermination)

      Whether the volume is deleted on instance termination.

      Parameters:
      deleteOnTermination - Whether the volume is deleted on instance termination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isDeleteOnTermination

      public Boolean isDeleteOnTermination()

      Whether the volume is deleted on instance termination.

      Returns:
      Whether the volume is deleted on instance termination.
    • 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 EbsBlockDevice clone()
      Overrides:
      clone in class Object