#[non_exhaustive]pub struct CreateVolumePermissionModificationsBuilder { /* private fields */ }
Expand description
A builder for CreateVolumePermissionModifications
.
Implementations§
source§impl CreateVolumePermissionModificationsBuilder
impl CreateVolumePermissionModificationsBuilder
sourcepub fn add(self, input: CreateVolumePermission) -> Self
pub fn add(self, input: CreateVolumePermission) -> Self
Appends an item to add
.
To override the contents of this collection use set_add
.
Adds the specified Amazon Web Services account ID or group to the list.
sourcepub fn set_add(self, input: Option<Vec<CreateVolumePermission>>) -> Self
pub fn set_add(self, input: Option<Vec<CreateVolumePermission>>) -> Self
Adds the specified Amazon Web Services account ID or group to the list.
sourcepub fn get_add(&self) -> &Option<Vec<CreateVolumePermission>>
pub fn get_add(&self) -> &Option<Vec<CreateVolumePermission>>
Adds the specified Amazon Web Services account ID or group to the list.
sourcepub fn remove(self, input: CreateVolumePermission) -> Self
pub fn remove(self, input: CreateVolumePermission) -> Self
Appends an item to remove
.
To override the contents of this collection use set_remove
.
Removes the specified Amazon Web Services account ID or group from the list.
sourcepub fn set_remove(self, input: Option<Vec<CreateVolumePermission>>) -> Self
pub fn set_remove(self, input: Option<Vec<CreateVolumePermission>>) -> Self
Removes the specified Amazon Web Services account ID or group from the list.
sourcepub fn get_remove(&self) -> &Option<Vec<CreateVolumePermission>>
pub fn get_remove(&self) -> &Option<Vec<CreateVolumePermission>>
Removes the specified Amazon Web Services account ID or group from the list.
sourcepub fn build(self) -> CreateVolumePermissionModifications
pub fn build(self) -> CreateVolumePermissionModifications
Consumes the builder and constructs a CreateVolumePermissionModifications
.
Trait Implementations§
source§impl Clone for CreateVolumePermissionModificationsBuilder
impl Clone for CreateVolumePermissionModificationsBuilder
source§fn clone(&self) -> CreateVolumePermissionModificationsBuilder
fn clone(&self) -> CreateVolumePermissionModificationsBuilder
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 CreateVolumePermissionModificationsBuilder
impl Default for CreateVolumePermissionModificationsBuilder
source§fn default() -> CreateVolumePermissionModificationsBuilder
fn default() -> CreateVolumePermissionModificationsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CreateVolumePermissionModificationsBuilder
impl PartialEq for CreateVolumePermissionModificationsBuilder
source§fn eq(&self, other: &CreateVolumePermissionModificationsBuilder) -> bool
fn eq(&self, other: &CreateVolumePermissionModificationsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateVolumePermissionModificationsBuilder
Auto Trait Implementations§
impl Freeze for CreateVolumePermissionModificationsBuilder
impl RefUnwindSafe for CreateVolumePermissionModificationsBuilder
impl Send for CreateVolumePermissionModificationsBuilder
impl Sync for CreateVolumePermissionModificationsBuilder
impl Unpin for CreateVolumePermissionModificationsBuilder
impl UnwindSafe for CreateVolumePermissionModificationsBuilder
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.