#[non_exhaustive]pub struct EbsInstanceBlockDeviceSpecificationBuilder { /* private fields */ }
Expand description
A builder for EbsInstanceBlockDeviceSpecification
.
Implementations§
source§impl EbsInstanceBlockDeviceSpecificationBuilder
impl EbsInstanceBlockDeviceSpecificationBuilder
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 get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
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 get_delete_on_termination(&self) -> &Option<bool>
pub fn get_delete_on_termination(&self) -> &Option<bool>
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 get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
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 get_snapshot_id(&self) -> &Option<String>
pub fn get_snapshot_id(&self) -> &Option<String>
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 get_volume_size(&self) -> &Option<i32>
pub fn get_volume_size(&self) -> &Option<i32>
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 get_volume_type(&self) -> &Option<EbsVolumeType>
pub fn get_volume_type(&self) -> &Option<EbsVolumeType>
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 get_throughput(&self) -> &Option<i32>
pub fn get_throughput(&self) -> &Option<i32>
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
.
Trait Implementations§
source§impl Clone for EbsInstanceBlockDeviceSpecificationBuilder
impl Clone for EbsInstanceBlockDeviceSpecificationBuilder
source§fn clone(&self) -> EbsInstanceBlockDeviceSpecificationBuilder
fn clone(&self) -> EbsInstanceBlockDeviceSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EbsInstanceBlockDeviceSpecificationBuilder
impl Default for EbsInstanceBlockDeviceSpecificationBuilder
source§fn default() -> EbsInstanceBlockDeviceSpecificationBuilder
fn default() -> EbsInstanceBlockDeviceSpecificationBuilder
source§impl PartialEq for EbsInstanceBlockDeviceSpecificationBuilder
impl PartialEq for EbsInstanceBlockDeviceSpecificationBuilder
source§fn eq(&self, other: &EbsInstanceBlockDeviceSpecificationBuilder) -> bool
fn eq(&self, other: &EbsInstanceBlockDeviceSpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.