Class VolumeConfiguration

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

public class VolumeConfiguration extends Object implements Serializable, Cloneable

Describes an Amazon EBS volume configuration.

See Also:
  • Constructor Details

    • VolumeConfiguration

      public VolumeConfiguration()
  • Method Details

    • setMountPoint

      public void setMountPoint(String mountPoint)

      The volume mount point. For example "/dev/sdh".

      Parameters:
      mountPoint - The volume mount point. For example "/dev/sdh".
    • getMountPoint

      public String getMountPoint()

      The volume mount point. For example "/dev/sdh".

      Returns:
      The volume mount point. For example "/dev/sdh".
    • withMountPoint

      public VolumeConfiguration withMountPoint(String mountPoint)

      The volume mount point. For example "/dev/sdh".

      Parameters:
      mountPoint - The volume mount point. For example "/dev/sdh".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setRaidLevel

      public void setRaidLevel(Integer raidLevel)

      The volume RAID level.

      Parameters:
      raidLevel - The volume RAID level.
    • getRaidLevel

      public Integer getRaidLevel()

      The volume RAID level.

      Returns:
      The volume RAID level.
    • withRaidLevel

      public VolumeConfiguration withRaidLevel(Integer raidLevel)

      The volume RAID level.

      Parameters:
      raidLevel - The volume RAID level.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setNumberOfDisks

      public void setNumberOfDisks(Integer numberOfDisks)

      The number of disks in the volume.

      Parameters:
      numberOfDisks - The number of disks in the volume.
    • getNumberOfDisks

      public Integer getNumberOfDisks()

      The number of disks in the volume.

      Returns:
      The number of disks in the volume.
    • withNumberOfDisks

      public VolumeConfiguration withNumberOfDisks(Integer numberOfDisks)

      The number of disks in the volume.

      Parameters:
      numberOfDisks - The number of disks in the volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSize

      public void setSize(Integer size)

      The volume size.

      Parameters:
      size - The volume size.
    • getSize

      public Integer getSize()

      The volume size.

      Returns:
      The volume size.
    • withSize

      public VolumeConfiguration withSize(Integer size)

      The volume size.

      Parameters:
      size - The volume size.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVolumeType

      public void setVolumeType(String volumeType)

      The volume type:

      • standard - Magnetic
      • io1 - Provisioned IOPS (SSD)
      • gp2 - General Purpose (SSD)
      Parameters:
      volumeType - The volume type:

      • standard - Magnetic
      • io1 - Provisioned IOPS (SSD)
      • gp2 - General Purpose (SSD)
    • getVolumeType

      public String getVolumeType()

      The volume type:

      • standard - Magnetic
      • io1 - Provisioned IOPS (SSD)
      • gp2 - General Purpose (SSD)
      Returns:
      The volume type:

      • standard - Magnetic
      • io1 - Provisioned IOPS (SSD)
      • gp2 - General Purpose (SSD)
    • withVolumeType

      public VolumeConfiguration withVolumeType(String volumeType)

      The volume type:

      • standard - Magnetic
      • io1 - Provisioned IOPS (SSD)
      • gp2 - General Purpose (SSD)
      Parameters:
      volumeType - The volume type:

      • standard - Magnetic
      • io1 - Provisioned IOPS (SSD)
      • gp2 - General Purpose (SSD)
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setIops

      public void setIops(Integer iops)

      For PIOPS volumes, the IOPS per disk.

      Parameters:
      iops - For PIOPS volumes, the IOPS per disk.
    • getIops

      public Integer getIops()

      For PIOPS volumes, the IOPS per disk.

      Returns:
      For PIOPS volumes, the IOPS per disk.
    • withIops

      public VolumeConfiguration withIops(Integer iops)

      For PIOPS volumes, the IOPS per disk.

      Parameters:
      iops - For PIOPS volumes, the IOPS per disk.
      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 VolumeConfiguration clone()
      Overrides:
      clone in class Object