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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EbsBlockDevice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EbsBlockDeviceclone()booleanequals(Object obj)BooleangetDeleteOnTermination()Whether the volume is deleted on instance termination.IntegergetIops()The number of I/O operations per second (IOPS) that the volume supports.StringgetSnapshotId()The snapshot ID.IntegergetVolumeSize()The volume size, in GiB.StringgetVolumeType()The volume type.inthashCode()BooleanisDeleteOnTermination()Whether the volume is deleted on instance termination.voidsetDeleteOnTermination(Boolean deleteOnTermination)Whether the volume is deleted on instance termination.voidsetIops(Integer iops)The number of I/O operations per second (IOPS) that the volume supports.voidsetSnapshotId(String snapshotId)The snapshot ID.voidsetVolumeSize(Integer volumeSize)The volume size, in GiB.voidsetVolumeType(VolumeType volumeType)The volume type.voidsetVolumeType(String volumeType)The volume type.StringtoString()Returns a string representation of this object; useful for testing and debugging.EbsBlockDevicewithDeleteOnTermination(Boolean deleteOnTermination)Whether the volume is deleted on instance termination.EbsBlockDevicewithIops(Integer iops)The number of I/O operations per second (IOPS) that the volume supports.EbsBlockDevicewithSnapshotId(String snapshotId)The snapshot ID.EbsBlockDevicewithVolumeSize(Integer volumeSize)The volume size, in GiB.EbsBlockDevicewithVolumeType(VolumeType volumeType)The volume type.EbsBlockDevicewithVolumeType(String volumeType)The volume type.
-
-
-
Method Detail
-
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.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes.- Parameters:
volumeType- The volume type.gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes.- See Also:
VolumeType
-
getVolumeType
public String getVolumeType()
The volume type.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes.- Returns:
- The volume type.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes. - See Also:
VolumeType
-
withVolumeType
public EbsBlockDevice withVolumeType(String volumeType)
The volume type.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes.- Parameters:
volumeType- The volume type.gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VolumeType
-
setVolumeType
public void setVolumeType(VolumeType volumeType)
The volume type.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes.- Parameters:
volumeType- The volume type.gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes.- See Also:
VolumeType
-
withVolumeType
public EbsBlockDevice withVolumeType(VolumeType volumeType)
The volume type.
gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes.- Parameters:
volumeType- The volume type.gp2for General Purpose (SSD) volumes,io1for Provisioned IOPS (SSD) volumes, andstandardfor Magnetic volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VolumeType
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EbsBlockDevice clone()
-
-