@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateEbsBlockDevice extends Object implements Serializable, Cloneable
Describes a block device for an EBS volume.
Constructor and Description |
---|
LaunchTemplateEbsBlockDevice() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateEbsBlockDevice |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
|
Boolean |
getEncrypted()
Indicates whether the EBS volume is encrypted.
|
Integer |
getIops()
The number of I/O operations per second (IOPS) that the volume supports.
|
String |
getKmsKeyId()
The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
|
String |
getSnapshotId()
The ID of the snapshot.
|
Integer |
getVolumeSize()
The size of the volume, in GiB.
|
String |
getVolumeType()
The volume type.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
|
Boolean |
isEncrypted()
Indicates whether the EBS volume is encrypted.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
|
void |
setEncrypted(Boolean encrypted)
Indicates whether the EBS volume is encrypted.
|
void |
setIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
|
void |
setKmsKeyId(String kmsKeyId)
The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot.
|
void |
setVolumeSize(Integer volumeSize)
The size of the volume, in GiB.
|
void |
setVolumeType(String volumeType)
The volume type.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateEbsBlockDevice |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
|
LaunchTemplateEbsBlockDevice |
withEncrypted(Boolean encrypted)
Indicates whether the EBS volume is encrypted.
|
LaunchTemplateEbsBlockDevice |
withIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
|
LaunchTemplateEbsBlockDevice |
withKmsKeyId(String kmsKeyId)
The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
|
LaunchTemplateEbsBlockDevice |
withSnapshotId(String snapshotId)
The ID of the snapshot.
|
LaunchTemplateEbsBlockDevice |
withVolumeSize(Integer volumeSize)
The size of the volume, in GiB.
|
LaunchTemplateEbsBlockDevice |
withVolumeType(String volumeType)
The volume type.
|
LaunchTemplateEbsBlockDevice |
withVolumeType(VolumeType volumeType)
The volume type.
|
public void setEncrypted(Boolean encrypted)
Indicates whether the EBS volume is encrypted.
encrypted
- Indicates whether the EBS volume is encrypted.public Boolean getEncrypted()
Indicates whether the EBS volume is encrypted.
public LaunchTemplateEbsBlockDevice withEncrypted(Boolean encrypted)
Indicates whether the EBS volume is encrypted.
encrypted
- Indicates whether the EBS volume is encrypted.public Boolean isEncrypted()
Indicates whether the EBS volume is encrypted.
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance termination.public Boolean getDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
public LaunchTemplateEbsBlockDevice withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the EBS volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the EBS volume is deleted on instance termination.public Boolean isDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
public void setIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
iops
- The number of I/O operations per second (IOPS) that the volume supports.public Integer getIops()
The number of I/O operations per second (IOPS) that the volume supports.
public LaunchTemplateEbsBlockDevice withIops(Integer iops)
The number of I/O operations per second (IOPS) that the volume supports.
iops
- The number of I/O operations per second (IOPS) that the volume supports.public void setKmsKeyId(String kmsKeyId)
The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
kmsKeyId
- The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.public String getKmsKeyId()
The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
public LaunchTemplateEbsBlockDevice withKmsKeyId(String kmsKeyId)
The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
kmsKeyId
- The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.public void setSnapshotId(String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.public String getSnapshotId()
The ID of the snapshot.
public LaunchTemplateEbsBlockDevice withSnapshotId(String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.public void setVolumeSize(Integer volumeSize)
The size of the volume, in GiB.
volumeSize
- The size of the volume, in GiB.public Integer getVolumeSize()
The size of the volume, in GiB.
public LaunchTemplateEbsBlockDevice withVolumeSize(Integer volumeSize)
The size of the volume, in GiB.
volumeSize
- The size of the volume, in GiB.public void setVolumeType(String volumeType)
The volume type.
volumeType
- The volume type.VolumeType
public String getVolumeType()
The volume type.
VolumeType
public LaunchTemplateEbsBlockDevice withVolumeType(String volumeType)
The volume type.
volumeType
- The volume type.VolumeType
public LaunchTemplateEbsBlockDevice withVolumeType(VolumeType volumeType)
The volume type.
volumeType
- The volume type.VolumeType
public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateEbsBlockDevice clone()