pub struct Builder { /* private fields */ }
Expand description
A builder for EbsInstanceBlockDeviceSpecification
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Use to configure device encryption.
sourcepub fn delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Use to configure delete on termination of the associated device.
sourcepub fn set_delete_on_termination(self, input: Option<bool>) -> Self
pub fn set_delete_on_termination(self, input: Option<bool>) -> Self
Use to configure delete on termination of the associated device.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
Use to configure the KMS key to use when encrypting the device.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
Use to configure the KMS key to use when encrypting the device.
sourcepub fn snapshot_id(self, input: impl Into<String>) -> Self
pub fn snapshot_id(self, input: impl Into<String>) -> Self
The snapshot that defines the device contents.
sourcepub fn set_snapshot_id(self, input: Option<String>) -> Self
pub fn set_snapshot_id(self, input: Option<String>) -> Self
The snapshot that defines the device contents.
sourcepub fn volume_size(self, input: i32) -> Self
pub fn volume_size(self, input: i32) -> Self
Use to override the device's volume size.
sourcepub fn set_volume_size(self, input: Option<i32>) -> Self
pub fn set_volume_size(self, input: Option<i32>) -> Self
Use to override the device's volume size.
sourcepub fn volume_type(self, input: EbsVolumeType) -> Self
pub fn volume_type(self, input: EbsVolumeType) -> Self
Use to override the device's volume type.
sourcepub fn set_volume_type(self, input: Option<EbsVolumeType>) -> Self
pub fn set_volume_type(self, input: Option<EbsVolumeType>) -> Self
Use to override the device's volume type.
sourcepub fn throughput(self, input: i32) -> Self
pub fn throughput(self, input: i32) -> Self
For GP3 volumes only – The throughput in MiB/s that the volume supports.
sourcepub fn set_throughput(self, input: Option<i32>) -> Self
pub fn set_throughput(self, input: Option<i32>) -> Self
For GP3 volumes only – The throughput in MiB/s that the volume supports.
sourcepub fn build(self) -> EbsInstanceBlockDeviceSpecification
pub fn build(self) -> EbsInstanceBlockDeviceSpecification
Consumes the builder and constructs a EbsInstanceBlockDeviceSpecification
.