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 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 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<BucketPolicyBuilder> for BucketPolicyBuilder
impl PartialEq<BucketPolicyBuilder> 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 ==
.