#[non_exhaustive]pub struct LaunchTemplateBlockDeviceMappingBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateBlockDeviceMapping
.
Implementations§
source§impl LaunchTemplateBlockDeviceMappingBuilder
impl LaunchTemplateBlockDeviceMappingBuilder
sourcepub fn device_name(self, input: impl Into<String>) -> Self
pub fn device_name(self, input: impl Into<String>) -> Self
The device name.
sourcepub fn set_device_name(self, input: Option<String>) -> Self
pub fn set_device_name(self, input: Option<String>) -> Self
The device name.
sourcepub fn get_device_name(&self) -> &Option<String>
pub fn get_device_name(&self) -> &Option<String>
The device name.
sourcepub fn virtual_name(self, input: impl Into<String>) -> Self
pub fn virtual_name(self, input: impl Into<String>) -> Self
The virtual device name (ephemeralN).
sourcepub fn set_virtual_name(self, input: Option<String>) -> Self
pub fn set_virtual_name(self, input: Option<String>) -> Self
The virtual device name (ephemeralN).
sourcepub fn get_virtual_name(&self) -> &Option<String>
pub fn get_virtual_name(&self) -> &Option<String>
The virtual device name (ephemeralN).
sourcepub fn ebs(self, input: LaunchTemplateEbsBlockDevice) -> Self
pub fn ebs(self, input: LaunchTemplateEbsBlockDevice) -> Self
Information about the block device for an EBS volume.
sourcepub fn set_ebs(self, input: Option<LaunchTemplateEbsBlockDevice>) -> Self
pub fn set_ebs(self, input: Option<LaunchTemplateEbsBlockDevice>) -> Self
Information about the block device for an EBS volume.
sourcepub fn get_ebs(&self) -> &Option<LaunchTemplateEbsBlockDevice>
pub fn get_ebs(&self) -> &Option<LaunchTemplateEbsBlockDevice>
Information about the block device for an EBS volume.
sourcepub fn no_device(self, input: impl Into<String>) -> Self
pub fn no_device(self, input: impl Into<String>) -> Self
To omit the device from the block device mapping, specify an empty string.
sourcepub fn set_no_device(self, input: Option<String>) -> Self
pub fn set_no_device(self, input: Option<String>) -> Self
To omit the device from the block device mapping, specify an empty string.
sourcepub fn get_no_device(&self) -> &Option<String>
pub fn get_no_device(&self) -> &Option<String>
To omit the device from the block device mapping, specify an empty string.
sourcepub fn build(self) -> LaunchTemplateBlockDeviceMapping
pub fn build(self) -> LaunchTemplateBlockDeviceMapping
Consumes the builder and constructs a LaunchTemplateBlockDeviceMapping
.
Trait Implementations§
source§impl Clone for LaunchTemplateBlockDeviceMappingBuilder
impl Clone for LaunchTemplateBlockDeviceMappingBuilder
source§fn clone(&self) -> LaunchTemplateBlockDeviceMappingBuilder
fn clone(&self) -> LaunchTemplateBlockDeviceMappingBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for LaunchTemplateBlockDeviceMappingBuilder
impl Default for LaunchTemplateBlockDeviceMappingBuilder
source§fn default() -> LaunchTemplateBlockDeviceMappingBuilder
fn default() -> LaunchTemplateBlockDeviceMappingBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<LaunchTemplateBlockDeviceMappingBuilder> for LaunchTemplateBlockDeviceMappingBuilder
impl PartialEq<LaunchTemplateBlockDeviceMappingBuilder> for LaunchTemplateBlockDeviceMappingBuilder
source§fn eq(&self, other: &LaunchTemplateBlockDeviceMappingBuilder) -> bool
fn eq(&self, other: &LaunchTemplateBlockDeviceMappingBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplateBlockDeviceMappingBuilder
Auto Trait Implementations§
impl RefUnwindSafe for LaunchTemplateBlockDeviceMappingBuilder
impl Send for LaunchTemplateBlockDeviceMappingBuilder
impl Sync for LaunchTemplateBlockDeviceMappingBuilder
impl Unpin for LaunchTemplateBlockDeviceMappingBuilder
impl UnwindSafe for LaunchTemplateBlockDeviceMappingBuilder
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
Mutably borrows from an owned value. Read more