#[non_exhaustive]pub struct InstanceBlockDeviceMappingBuilder { /* private fields */ }
Expand description
A builder for InstanceBlockDeviceMapping
.
Implementations§
source§impl InstanceBlockDeviceMappingBuilder
impl InstanceBlockDeviceMappingBuilder
sourcepub fn device_name(self, input: impl Into<String>) -> Self
pub fn device_name(self, input: impl Into<String>) -> Self
The device name (for example, /dev/sdh
or xvdh
).
sourcepub fn set_device_name(self, input: Option<String>) -> Self
pub fn set_device_name(self, input: Option<String>) -> Self
The device name (for example, /dev/sdh
or xvdh
).
sourcepub fn get_device_name(&self) -> &Option<String>
pub fn get_device_name(&self) -> &Option<String>
The device name (for example, /dev/sdh
or xvdh
).
sourcepub fn ebs(self, input: EbsInstanceBlockDevice) -> Self
pub fn ebs(self, input: EbsInstanceBlockDevice) -> Self
Parameters used to automatically set up EBS volumes when the instance is launched.
sourcepub fn set_ebs(self, input: Option<EbsInstanceBlockDevice>) -> Self
pub fn set_ebs(self, input: Option<EbsInstanceBlockDevice>) -> Self
Parameters used to automatically set up EBS volumes when the instance is launched.
sourcepub fn get_ebs(&self) -> &Option<EbsInstanceBlockDevice>
pub fn get_ebs(&self) -> &Option<EbsInstanceBlockDevice>
Parameters used to automatically set up EBS volumes when the instance is launched.
sourcepub fn build(self) -> InstanceBlockDeviceMapping
pub fn build(self) -> InstanceBlockDeviceMapping
Consumes the builder and constructs a InstanceBlockDeviceMapping
.
Trait Implementations§
source§impl Clone for InstanceBlockDeviceMappingBuilder
impl Clone for InstanceBlockDeviceMappingBuilder
source§fn clone(&self) -> InstanceBlockDeviceMappingBuilder
fn clone(&self) -> InstanceBlockDeviceMappingBuilder
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 InstanceBlockDeviceMappingBuilder
impl Default for InstanceBlockDeviceMappingBuilder
source§fn default() -> InstanceBlockDeviceMappingBuilder
fn default() -> InstanceBlockDeviceMappingBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for InstanceBlockDeviceMappingBuilder
impl PartialEq for InstanceBlockDeviceMappingBuilder
source§fn eq(&self, other: &InstanceBlockDeviceMappingBuilder) -> bool
fn eq(&self, other: &InstanceBlockDeviceMappingBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceBlockDeviceMappingBuilder
Auto Trait Implementations§
impl Freeze for InstanceBlockDeviceMappingBuilder
impl RefUnwindSafe for InstanceBlockDeviceMappingBuilder
impl Send for InstanceBlockDeviceMappingBuilder
impl Sync for InstanceBlockDeviceMappingBuilder
impl Unpin for InstanceBlockDeviceMappingBuilder
impl UnwindSafe for InstanceBlockDeviceMappingBuilder
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.