#[non_exhaustive]pub struct LaunchTemplateEbsBlockDeviceBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateEbsBlockDevice
.
Implementations§
source§impl LaunchTemplateEbsBlockDeviceBuilder
impl LaunchTemplateEbsBlockDeviceBuilder
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Indicates whether the EBS volume is encrypted.
sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
Indicates whether the EBS volume is encrypted.
sourcepub fn delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn set_delete_on_termination(self, input: Option<bool>) -> Self
pub fn set_delete_on_termination(self, input: Option<bool>) -> Self
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn get_delete_on_termination(&self) -> &Option<bool>
pub fn get_delete_on_termination(&self) -> &Option<bool>
Indicates whether the EBS volume is deleted on instance termination.
sourcepub fn iops(self, input: i32) -> Self
pub fn iops(self, input: i32) -> Self
The number of I/O operations per second (IOPS) that the volume supports.
sourcepub fn set_iops(self, input: Option<i32>) -> Self
pub fn set_iops(self, input: Option<i32>) -> Self
The number of I/O operations per second (IOPS) that the volume supports.
sourcepub fn get_iops(&self) -> &Option<i32>
pub fn get_iops(&self) -> &Option<i32>
The number of I/O operations per second (IOPS) that the volume supports.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ARN of the Key Management Service (KMS) CMK used for encryption.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ARN of the Key Management Service (KMS) CMK used for encryption.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The ARN of the Key Management Service (KMS) CMK used for encryption.
sourcepub fn snapshot_id(self, input: impl Into<String>) -> Self
pub fn snapshot_id(self, input: impl Into<String>) -> Self
The ID of the snapshot.
sourcepub fn set_snapshot_id(self, input: Option<String>) -> Self
pub fn set_snapshot_id(self, input: Option<String>) -> Self
The ID of the snapshot.
sourcepub fn get_snapshot_id(&self) -> &Option<String>
pub fn get_snapshot_id(&self) -> &Option<String>
The ID of the snapshot.
sourcepub fn volume_size(self, input: i32) -> Self
pub fn volume_size(self, input: i32) -> Self
The size of the volume, in GiB.
sourcepub fn set_volume_size(self, input: Option<i32>) -> Self
pub fn set_volume_size(self, input: Option<i32>) -> Self
The size of the volume, in GiB.
sourcepub fn get_volume_size(&self) -> &Option<i32>
pub fn get_volume_size(&self) -> &Option<i32>
The size of the volume, in GiB.
sourcepub fn volume_type(self, input: VolumeType) -> Self
pub fn volume_type(self, input: VolumeType) -> Self
The volume type.
sourcepub fn set_volume_type(self, input: Option<VolumeType>) -> Self
pub fn set_volume_type(self, input: Option<VolumeType>) -> Self
The volume type.
sourcepub fn get_volume_type(&self) -> &Option<VolumeType>
pub fn get_volume_type(&self) -> &Option<VolumeType>
The volume type.
sourcepub fn throughput(self, input: i32) -> Self
pub fn throughput(self, input: i32) -> Self
The throughput that the volume supports, in MiB/s.
sourcepub fn set_throughput(self, input: Option<i32>) -> Self
pub fn set_throughput(self, input: Option<i32>) -> Self
The throughput that the volume supports, in MiB/s.
sourcepub fn get_throughput(&self) -> &Option<i32>
pub fn get_throughput(&self) -> &Option<i32>
The throughput that the volume supports, in MiB/s.
sourcepub fn build(self) -> LaunchTemplateEbsBlockDevice
pub fn build(self) -> LaunchTemplateEbsBlockDevice
Consumes the builder and constructs a LaunchTemplateEbsBlockDevice
.
Trait Implementations§
source§impl Clone for LaunchTemplateEbsBlockDeviceBuilder
impl Clone for LaunchTemplateEbsBlockDeviceBuilder
source§fn clone(&self) -> LaunchTemplateEbsBlockDeviceBuilder
fn clone(&self) -> LaunchTemplateEbsBlockDeviceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LaunchTemplateEbsBlockDeviceBuilder
impl Default for LaunchTemplateEbsBlockDeviceBuilder
source§fn default() -> LaunchTemplateEbsBlockDeviceBuilder
fn default() -> LaunchTemplateEbsBlockDeviceBuilder
source§impl PartialEq for LaunchTemplateEbsBlockDeviceBuilder
impl PartialEq for LaunchTemplateEbsBlockDeviceBuilder
source§fn eq(&self, other: &LaunchTemplateEbsBlockDeviceBuilder) -> bool
fn eq(&self, other: &LaunchTemplateEbsBlockDeviceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplateEbsBlockDeviceBuilder
Auto Trait Implementations§
impl Freeze for LaunchTemplateEbsBlockDeviceBuilder
impl RefUnwindSafe for LaunchTemplateEbsBlockDeviceBuilder
impl Send for LaunchTemplateEbsBlockDeviceBuilder
impl Sync for LaunchTemplateEbsBlockDeviceBuilder
impl Unpin for LaunchTemplateEbsBlockDeviceBuilder
impl UnwindSafe for LaunchTemplateEbsBlockDeviceBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more