Struct aws_sdk_securityhub::types::builders::AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
source · #[non_exhaustive]pub struct AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails
.
Implementations§
source§impl AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
impl AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
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 ebs(
self,
input: AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails
) -> Self
pub fn ebs( self, input: AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails ) -> Self
Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
sourcepub fn set_ebs(
self,
input: Option<AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails>
) -> Self
pub fn set_ebs( self, input: Option<AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails> ) -> Self
Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
sourcepub fn get_ebs(
&self
) -> &Option<AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails>
pub fn get_ebs( &self ) -> &Option<AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails>
Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
sourcepub fn no_device(self, input: impl Into<String>) -> Self
pub fn no_device(self, input: impl Into<String>) -> Self
Omits the device from the block device mapping when an empty string is specified.
sourcepub fn set_no_device(self, input: Option<String>) -> Self
pub fn set_no_device(self, input: Option<String>) -> Self
Omits the device from the block device mapping when an empty string is specified.
sourcepub fn get_no_device(&self) -> &Option<String>
pub fn get_no_device(&self) -> &Option<String>
Omits the device from the block device mapping when an empty string is specified.
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). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0
and ephemeral1
. The number of available instance store volumes depends on the instance type.
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). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0
and ephemeral1
. The number of available instance store volumes depends on the instance type.
sourcepub fn get_virtual_name(&self) -> &Option<String>
pub fn get_virtual_name(&self) -> &Option<String>
The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0
and ephemeral1
. The number of available instance store volumes depends on the instance type.
sourcepub fn build(self) -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails
pub fn build(self) -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails
Consumes the builder and constructs a AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails
.
Trait Implementations§
source§impl Clone for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
impl Clone for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
source§fn clone(&self) -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
fn clone(&self) -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
impl Default for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
source§fn default() -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
fn default() -> AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
source§impl PartialEq for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
impl PartialEq for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
source§fn eq(
&self,
other: &AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
) -> bool
fn eq( &self, other: &AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder ) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
impl RefUnwindSafe for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
impl Send for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
impl Sync for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
impl Unpin for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
impl UnwindSafe for AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetailsBuilder
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