@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EbsInstanceBlockDeviceSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Amazon EBS-specific block device mapping specifications.
Constructor and Description |
---|
EbsInstanceBlockDeviceSpecification() |
Modifier and Type | Method and Description |
---|---|
EbsInstanceBlockDeviceSpecification |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDeleteOnTermination()
Use to configure delete on termination of the associated device.
|
Boolean |
getEncrypted()
Use to configure device encryption.
|
Integer |
getIops()
Use to configure device IOPS.
|
String |
getKmsKeyId()
Use to configure the KMS key to use when encrypting the device.
|
String |
getSnapshotId()
The snapshot that defines the device contents.
|
Integer |
getThroughput()
For GP3 volumes only – The throughput in MiB/s that the volume supports.
|
Integer |
getVolumeSize()
Use to override the device's volume size.
|
String |
getVolumeType()
Use to override the device's volume type.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Use to configure delete on termination of the associated device.
|
Boolean |
isEncrypted()
Use to configure device encryption.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Use to configure delete on termination of the associated device.
|
void |
setEncrypted(Boolean encrypted)
Use to configure device encryption.
|
void |
setIops(Integer iops)
Use to configure device IOPS.
|
void |
setKmsKeyId(String kmsKeyId)
Use to configure the KMS key to use when encrypting the device.
|
void |
setSnapshotId(String snapshotId)
The snapshot that defines the device contents.
|
void |
setThroughput(Integer throughput)
For GP3 volumes only – The throughput in MiB/s that the volume supports.
|
void |
setVolumeSize(Integer volumeSize)
Use to override the device's volume size.
|
void |
setVolumeType(String volumeType)
Use to override the device's volume type.
|
String |
toString()
Returns a string representation of this object.
|
EbsInstanceBlockDeviceSpecification |
withDeleteOnTermination(Boolean deleteOnTermination)
Use to configure delete on termination of the associated device.
|
EbsInstanceBlockDeviceSpecification |
withEncrypted(Boolean encrypted)
Use to configure device encryption.
|
EbsInstanceBlockDeviceSpecification |
withIops(Integer iops)
Use to configure device IOPS.
|
EbsInstanceBlockDeviceSpecification |
withKmsKeyId(String kmsKeyId)
Use to configure the KMS key to use when encrypting the device.
|
EbsInstanceBlockDeviceSpecification |
withSnapshotId(String snapshotId)
The snapshot that defines the device contents.
|
EbsInstanceBlockDeviceSpecification |
withThroughput(Integer throughput)
For GP3 volumes only – The throughput in MiB/s that the volume supports.
|
EbsInstanceBlockDeviceSpecification |
withVolumeSize(Integer volumeSize)
Use to override the device's volume size.
|
EbsInstanceBlockDeviceSpecification |
withVolumeType(EbsVolumeType volumeType)
Use to override the device's volume type.
|
EbsInstanceBlockDeviceSpecification |
withVolumeType(String volumeType)
Use to override the device's volume type.
|
public void setEncrypted(Boolean encrypted)
Use to configure device encryption.
encrypted
- Use to configure device encryption.public Boolean getEncrypted()
Use to configure device encryption.
public EbsInstanceBlockDeviceSpecification withEncrypted(Boolean encrypted)
Use to configure device encryption.
encrypted
- Use to configure device encryption.public Boolean isEncrypted()
Use to configure device encryption.
public void setDeleteOnTermination(Boolean deleteOnTermination)
Use to configure delete on termination of the associated device.
deleteOnTermination
- Use to configure delete on termination of the associated device.public Boolean getDeleteOnTermination()
Use to configure delete on termination of the associated device.
public EbsInstanceBlockDeviceSpecification withDeleteOnTermination(Boolean deleteOnTermination)
Use to configure delete on termination of the associated device.
deleteOnTermination
- Use to configure delete on termination of the associated device.public Boolean isDeleteOnTermination()
Use to configure delete on termination of the associated device.
public void setIops(Integer iops)
Use to configure device IOPS.
iops
- Use to configure device IOPS.public Integer getIops()
Use to configure device IOPS.
public EbsInstanceBlockDeviceSpecification withIops(Integer iops)
Use to configure device IOPS.
iops
- Use to configure device IOPS.public void setKmsKeyId(String kmsKeyId)
Use to configure the KMS key to use when encrypting the device.
kmsKeyId
- Use to configure the KMS key to use when encrypting the device.public String getKmsKeyId()
Use to configure the KMS key to use when encrypting the device.
public EbsInstanceBlockDeviceSpecification withKmsKeyId(String kmsKeyId)
Use to configure the KMS key to use when encrypting the device.
kmsKeyId
- Use to configure the KMS key to use when encrypting the device.public void setSnapshotId(String snapshotId)
The snapshot that defines the device contents.
snapshotId
- The snapshot that defines the device contents.public String getSnapshotId()
The snapshot that defines the device contents.
public EbsInstanceBlockDeviceSpecification withSnapshotId(String snapshotId)
The snapshot that defines the device contents.
snapshotId
- The snapshot that defines the device contents.public void setVolumeSize(Integer volumeSize)
Use to override the device's volume size.
volumeSize
- Use to override the device's volume size.public Integer getVolumeSize()
Use to override the device's volume size.
public EbsInstanceBlockDeviceSpecification withVolumeSize(Integer volumeSize)
Use to override the device's volume size.
volumeSize
- Use to override the device's volume size.public void setVolumeType(String volumeType)
Use to override the device's volume type.
volumeType
- Use to override the device's volume type.EbsVolumeType
public String getVolumeType()
Use to override the device's volume type.
EbsVolumeType
public EbsInstanceBlockDeviceSpecification withVolumeType(String volumeType)
Use to override the device's volume type.
volumeType
- Use to override the device's volume type.EbsVolumeType
public EbsInstanceBlockDeviceSpecification withVolumeType(EbsVolumeType volumeType)
Use to override the device's volume type.
volumeType
- Use to override the device's volume type.EbsVolumeType
public void setThroughput(Integer throughput)
For GP3 volumes only – The throughput in MiB/s that the volume supports.
throughput
- For GP3 volumes only – The throughput in MiB/s that the volume supports.public Integer getThroughput()
For GP3 volumes only – The throughput in MiB/s that the volume supports.
public EbsInstanceBlockDeviceSpecification withThroughput(Integer throughput)
For GP3 volumes only – The throughput in MiB/s that the volume supports.
throughput
- For GP3 volumes only – The throughput in MiB/s that the volume supports.public String toString()
toString
in class Object
Object.toString()
public EbsInstanceBlockDeviceSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.