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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolumeConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeConfigurationclone()booleanequals(Object obj)IntegergetIops()For PIOPS volumes, the IOPS per disk.StringgetMountPoint()The volume mount point.IntegergetNumberOfDisks()The number of disks in the volume.IntegergetRaidLevel()The volume RAID level.IntegergetSize()The volume size.StringgetVolumeType()The volume type:inthashCode()voidsetIops(Integer iops)For PIOPS volumes, the IOPS per disk.voidsetMountPoint(String mountPoint)The volume mount point.voidsetNumberOfDisks(Integer numberOfDisks)The number of disks in the volume.voidsetRaidLevel(Integer raidLevel)The volume RAID level.voidsetSize(Integer size)The volume size.voidsetVolumeType(String volumeType)The volume type:StringtoString()Returns a string representation of this object; useful for testing and debugging.VolumeConfigurationwithIops(Integer iops)For PIOPS volumes, the IOPS per disk.VolumeConfigurationwithMountPoint(String mountPoint)The volume mount point.VolumeConfigurationwithNumberOfDisks(Integer numberOfDisks)The number of disks in the volume.VolumeConfigurationwithRaidLevel(Integer raidLevel)The volume RAID level.VolumeConfigurationwithSize(Integer size)The volume size.VolumeConfigurationwithVolumeType(String volumeType)The volume type:
-
-
-
Method Detail
-
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- Magneticio1- Provisioned IOPS (SSD)gp2- General Purpose (SSD)
- Parameters:
volumeType- The volume type:standard- Magneticio1- Provisioned IOPS (SSD)gp2- General Purpose (SSD)
-
getVolumeType
public String getVolumeType()
The volume type:
standard- Magneticio1- Provisioned IOPS (SSD)gp2- General Purpose (SSD)
- Returns:
- The volume type:
standard- Magneticio1- Provisioned IOPS (SSD)gp2- General Purpose (SSD)
-
withVolumeType
public VolumeConfiguration withVolumeType(String volumeType)
The volume type:
standard- Magneticio1- Provisioned IOPS (SSD)gp2- General Purpose (SSD)
- Parameters:
volumeType- The volume type:standard- Magneticio1- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VolumeConfiguration clone()
-
-