Struct aws_sdk_s3::types::builders::AccessControlPolicyBuilder
source · #[non_exhaustive]pub struct AccessControlPolicyBuilder { /* private fields */ }
Expand description
A builder for AccessControlPolicy
.
Implementations§
source§impl AccessControlPolicyBuilder
impl AccessControlPolicyBuilder
sourcepub fn grants(self, input: Grant) -> Self
pub fn grants(self, input: Grant) -> Self
Appends an item to grants
.
To override the contents of this collection use set_grants
.
A list of grants.
sourcepub fn set_grants(self, input: Option<Vec<Grant>>) -> Self
pub fn set_grants(self, input: Option<Vec<Grant>>) -> Self
A list of grants.
sourcepub fn get_grants(&self) -> &Option<Vec<Grant>>
pub fn get_grants(&self) -> &Option<Vec<Grant>>
A list of grants.
sourcepub fn set_owner(self, input: Option<Owner>) -> Self
pub fn set_owner(self, input: Option<Owner>) -> Self
Container for the bucket owner's display name and ID.
sourcepub fn get_owner(&self) -> &Option<Owner>
pub fn get_owner(&self) -> &Option<Owner>
Container for the bucket owner's display name and ID.
sourcepub fn build(self) -> AccessControlPolicy
pub fn build(self) -> AccessControlPolicy
Consumes the builder and constructs a AccessControlPolicy
.
Trait Implementations§
source§impl Clone for AccessControlPolicyBuilder
impl Clone for AccessControlPolicyBuilder
source§fn clone(&self) -> AccessControlPolicyBuilder
fn clone(&self) -> AccessControlPolicyBuilder
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 AccessControlPolicyBuilder
impl Debug for AccessControlPolicyBuilder
source§impl Default for AccessControlPolicyBuilder
impl Default for AccessControlPolicyBuilder
source§fn default() -> AccessControlPolicyBuilder
fn default() -> AccessControlPolicyBuilder
Returns the “default value” for a type. Read more
impl StructuralPartialEq for AccessControlPolicyBuilder
Auto Trait Implementations§
impl Freeze for AccessControlPolicyBuilder
impl RefUnwindSafe for AccessControlPolicyBuilder
impl Send for AccessControlPolicyBuilder
impl Sync for AccessControlPolicyBuilder
impl Unpin for AccessControlPolicyBuilder
impl UnwindSafe for AccessControlPolicyBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Creates a shared type from an unshared type.