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.
Constructor and Description |
---|
EbsBlockDevice() |
Modifier and Type | Method and 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(String volumeType)
The volume type.
|
void |
setVolumeType(VolumeType 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(String volumeType)
The volume type.
|
EbsBlockDevice |
withVolumeType(VolumeType volumeType)
The volume type.
|
public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- The snapshot ID.public EbsBlockDevice withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The snapshot ID.public Integer getIops()
public void setIops(Integer iops)
iops
- The number of I/O operations per second (IOPS) that the volume
supports. For more information, see EbsBlockDevice.public EbsBlockDevice withIops(Integer iops)
Returns a reference to this object so that method calls can be chained together.
iops
- The number of I/O operations per second (IOPS) that the volume
supports. For more information, see EbsBlockDevice.public Integer getVolumeSize()
public void setVolumeSize(Integer volumeSize)
volumeSize
- The volume size, in GiB. For more information, see EbsBlockDevice.public EbsBlockDevice withVolumeSize(Integer volumeSize)
Returns a reference to this object so that method calls can be chained together.
volumeSize
- The volume size, in GiB. For more information, see EbsBlockDevice.public String getVolumeType()
gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
Constraints:
Allowed Values: gp2, io1, standard
gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public void setVolumeType(String volumeType)
gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
Constraints:
Allowed Values: gp2, io1, standard
volumeType
- The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public EbsBlockDevice withVolumeType(String volumeType)
gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: gp2, io1, standard
volumeType
- The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public void setVolumeType(VolumeType volumeType)
gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
Constraints:
Allowed Values: gp2, io1, standard
volumeType
- The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public EbsBlockDevice withVolumeType(VolumeType volumeType)
gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: gp2, io1, standard
volumeType
- The volume type. gp2
for General Purpose (SSD) volumes,
io1
for Provisioned IOPS (SSD) volumes, and
standard
for Magnetic volumes.VolumeType
public Boolean isDeleteOnTermination()
public void setDeleteOnTermination(Boolean deleteOnTermination)
deleteOnTermination
- Whether the volume is deleted on instance termination.public EbsBlockDevice withDeleteOnTermination(Boolean deleteOnTermination)
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination
- Whether the volume is deleted on instance termination.public Boolean getDeleteOnTermination()
public String toString()
toString
in class Object
Object.toString()
public EbsBlockDevice clone()
Copyright © 2015. All rights reserved.