Struct aws_sdk_macie2::types::builders::BucketPolicyBuilder
source · #[non_exhaustive]pub struct BucketPolicyBuilder { /* private fields */ }
Expand description
A builder for BucketPolicy
.
Implementations§
source§impl BucketPolicyBuilder
impl BucketPolicyBuilder
sourcepub fn allows_public_read_access(self, input: bool) -> Self
pub fn allows_public_read_access(self, input: bool) -> Self
Specifies whether the bucket policy allows the general public to have read access to the bucket.
sourcepub fn set_allows_public_read_access(self, input: Option<bool>) -> Self
pub fn set_allows_public_read_access(self, input: Option<bool>) -> Self
Specifies whether the bucket policy allows the general public to have read access to the bucket.
sourcepub fn get_allows_public_read_access(&self) -> &Option<bool>
pub fn get_allows_public_read_access(&self) -> &Option<bool>
Specifies whether the bucket policy allows the general public to have read access to the bucket.
sourcepub fn allows_public_write_access(self, input: bool) -> Self
pub fn allows_public_write_access(self, input: bool) -> Self
Specifies whether the bucket policy allows the general public to have write access to the bucket.
sourcepub fn set_allows_public_write_access(self, input: Option<bool>) -> Self
pub fn set_allows_public_write_access(self, input: Option<bool>) -> Self
Specifies whether the bucket policy allows the general public to have write access to the bucket.
sourcepub fn get_allows_public_write_access(&self) -> &Option<bool>
pub fn get_allows_public_write_access(&self) -> &Option<bool>
Specifies whether the bucket policy allows the general public to have write access to the bucket.
sourcepub fn build(self) -> BucketPolicy
pub fn build(self) -> BucketPolicy
Consumes the builder and constructs a BucketPolicy
.
Trait Implementations§
source§impl Clone for BucketPolicyBuilder
impl Clone for BucketPolicyBuilder
source§fn clone(&self) -> BucketPolicyBuilder
fn clone(&self) -> BucketPolicyBuilder
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 BucketPolicyBuilder
impl Debug for BucketPolicyBuilder
source§impl Default for BucketPolicyBuilder
impl Default for BucketPolicyBuilder
source§fn default() -> BucketPolicyBuilder
fn default() -> BucketPolicyBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for BucketPolicyBuilder
impl PartialEq for BucketPolicyBuilder
source§fn eq(&self, other: &BucketPolicyBuilder) -> bool
fn eq(&self, other: &BucketPolicyBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BucketPolicyBuilder
Auto Trait Implementations§
impl RefUnwindSafe for BucketPolicyBuilder
impl Send for BucketPolicyBuilder
impl Sync for BucketPolicyBuilder
impl Unpin for BucketPolicyBuilder
impl UnwindSafe for BucketPolicyBuilder
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>
Creates a shared type from an unshared type.