#[non_exhaustive]pub struct LambdaDeviceMountBuilder { /* private fields */ }
Expand description
A builder for LambdaDeviceMount
.
Implementations§
source§impl LambdaDeviceMountBuilder
impl LambdaDeviceMountBuilder
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
The mount path for the device in the file system.
This field is required.sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
The mount path for the device in the file system.
sourcepub fn permission(self, input: LambdaFilesystemPermission) -> Self
pub fn permission(self, input: LambdaFilesystemPermission) -> Self
The permission to access the device: read/only (ro
) or read/write (rw
).
Default: ro
sourcepub fn set_permission(self, input: Option<LambdaFilesystemPermission>) -> Self
pub fn set_permission(self, input: Option<LambdaFilesystemPermission>) -> Self
The permission to access the device: read/only (ro
) or read/write (rw
).
Default: ro
sourcepub fn get_permission(&self) -> &Option<LambdaFilesystemPermission>
pub fn get_permission(&self) -> &Option<LambdaFilesystemPermission>
The permission to access the device: read/only (ro
) or read/write (rw
).
Default: ro
sourcepub fn add_group_owner(self, input: bool) -> Self
pub fn add_group_owner(self, input: bool) -> Self
Whether or not to add the component's system user as an owner of the device.
Default: false
sourcepub fn set_add_group_owner(self, input: Option<bool>) -> Self
pub fn set_add_group_owner(self, input: Option<bool>) -> Self
Whether or not to add the component's system user as an owner of the device.
Default: false
sourcepub fn get_add_group_owner(&self) -> &Option<bool>
pub fn get_add_group_owner(&self) -> &Option<bool>
Whether or not to add the component's system user as an owner of the device.
Default: false
sourcepub fn build(self) -> Result<LambdaDeviceMount, BuildError>
pub fn build(self) -> Result<LambdaDeviceMount, BuildError>
Consumes the builder and constructs a LambdaDeviceMount
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LambdaDeviceMountBuilder
impl Clone for LambdaDeviceMountBuilder
source§fn clone(&self) -> LambdaDeviceMountBuilder
fn clone(&self) -> LambdaDeviceMountBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LambdaDeviceMountBuilder
impl Debug for LambdaDeviceMountBuilder
source§impl Default for LambdaDeviceMountBuilder
impl Default for LambdaDeviceMountBuilder
source§fn default() -> LambdaDeviceMountBuilder
fn default() -> LambdaDeviceMountBuilder
source§impl PartialEq for LambdaDeviceMountBuilder
impl PartialEq for LambdaDeviceMountBuilder
source§fn eq(&self, other: &LambdaDeviceMountBuilder) -> bool
fn eq(&self, other: &LambdaDeviceMountBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LambdaDeviceMountBuilder
Auto Trait Implementations§
impl Freeze for LambdaDeviceMountBuilder
impl RefUnwindSafe for LambdaDeviceMountBuilder
impl Send for LambdaDeviceMountBuilder
impl Sync for LambdaDeviceMountBuilder
impl Unpin for LambdaDeviceMountBuilder
impl UnwindSafe for LambdaDeviceMountBuilder
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