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 EbsBlockDevice
clone()
boolean
equals(Object obj)
Boolean
getDeleteOnTermination()
Whether the volume is deleted on instance termination.Integer
getIops()
The number of I/O operations per second (IOPS) that the volume supports.String
getSnapshotId()
The snapshot ID.Integer
getVolumeSize()
The volume size, in GiB.String
getVolumeType()
The volume type.int
hashCode()
Boolean
isDeleteOnTermination()
Whether the volume is deleted on instance termination.void
setDeleteOnTermination(Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.void
setIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.void
setSnapshotId(String snapshotId)
The snapshot ID.void
setVolumeSize(Integer volumeSize)
The volume size, in GiB.void
setVolumeType(VolumeType volumeType)
The volume type.void
setVolumeType(String volumeType)
The volume type.String
toString()
Returns a string representation of this object; useful for testing and debugging.EbsBlockDevice
withDeleteOnTermination(Boolean deleteOnTermination)
Whether the volume is deleted on instance termination.EbsBlockDevice
withIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.EbsBlockDevice
withSnapshotId(String snapshotId)
The snapshot ID.EbsBlockDevice
withVolumeSize(Integer volumeSize)
The volume size, in GiB.EbsBlockDevice
withVolumeType(VolumeType volumeType)
The volume type.EbsBlockDevice
withVolumeType(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.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Parameters:
volumeType
- The volume type.gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- See Also:
VolumeType
-
getVolumeType
public String getVolumeType()
The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Returns:
- The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes. - See Also:
VolumeType
-
withVolumeType
public EbsBlockDevice withVolumeType(String volumeType)
The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Parameters:
volumeType
- The volume type.gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for 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.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Parameters:
volumeType
- The volume type.gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- See Also:
VolumeType
-
withVolumeType
public EbsBlockDevice withVolumeType(VolumeType volumeType)
The volume type.
gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for Magnetic volumes.- Parameters:
volumeType
- The volume type.gp2
for General Purpose (SSD) volumes,io1
for Provisioned IOPS (SSD) volumes, andstandard
for 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EbsBlockDevice clone()
-
-