Struct aws_sdk_s3::types::builders::OwnershipControlsBuilder
source · #[non_exhaustive]pub struct OwnershipControlsBuilder { /* private fields */ }
Expand description
A builder for OwnershipControls
.
Implementations§
source§impl OwnershipControlsBuilder
impl OwnershipControlsBuilder
sourcepub fn rules(self, input: OwnershipControlsRule) -> Self
pub fn rules(self, input: OwnershipControlsRule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
The container element for an ownership control rule.
sourcepub fn set_rules(self, input: Option<Vec<OwnershipControlsRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<OwnershipControlsRule>>) -> Self
The container element for an ownership control rule.
sourcepub fn get_rules(&self) -> &Option<Vec<OwnershipControlsRule>>
pub fn get_rules(&self) -> &Option<Vec<OwnershipControlsRule>>
The container element for an ownership control rule.
sourcepub fn build(self) -> OwnershipControls
pub fn build(self) -> OwnershipControls
Consumes the builder and constructs a OwnershipControls
.
Trait Implementations§
source§impl Clone for OwnershipControlsBuilder
impl Clone for OwnershipControlsBuilder
source§fn clone(&self) -> OwnershipControlsBuilder
fn clone(&self) -> OwnershipControlsBuilder
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 Debug for OwnershipControlsBuilder
impl Debug for OwnershipControlsBuilder
source§impl Default for OwnershipControlsBuilder
impl Default for OwnershipControlsBuilder
source§fn default() -> OwnershipControlsBuilder
fn default() -> OwnershipControlsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OwnershipControlsBuilder
impl PartialEq for OwnershipControlsBuilder
source§fn eq(&self, other: &OwnershipControlsBuilder) -> bool
fn eq(&self, other: &OwnershipControlsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OwnershipControlsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for OwnershipControlsBuilder
impl Send for OwnershipControlsBuilder
impl Sync for OwnershipControlsBuilder
impl Unpin for OwnershipControlsBuilder
impl UnwindSafe for OwnershipControlsBuilder
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