Struct aws_sdk_macie2::types::builders::BlockPublicAccessBuilder
source · #[non_exhaustive]pub struct BlockPublicAccessBuilder { /* private fields */ }Expand description
A builder for BlockPublicAccess.
Implementations§
source§impl BlockPublicAccessBuilder
impl BlockPublicAccessBuilder
sourcepub fn block_public_acls(self, input: bool) -> Self
pub fn block_public_acls(self, input: bool) -> Self
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
sourcepub fn set_block_public_acls(self, input: Option<bool>) -> Self
pub fn set_block_public_acls(self, input: Option<bool>) -> Self
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
sourcepub fn get_block_public_acls(&self) -> &Option<bool>
pub fn get_block_public_acls(&self) -> &Option<bool>
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
sourcepub fn block_public_policy(self, input: bool) -> Self
pub fn block_public_policy(self, input: bool) -> Self
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
sourcepub fn set_block_public_policy(self, input: Option<bool>) -> Self
pub fn set_block_public_policy(self, input: Option<bool>) -> Self
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
sourcepub fn get_block_public_policy(&self) -> &Option<bool>
pub fn get_block_public_policy(&self) -> &Option<bool>
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
sourcepub fn ignore_public_acls(self, input: bool) -> Self
pub fn ignore_public_acls(self, input: bool) -> Self
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
sourcepub fn set_ignore_public_acls(self, input: Option<bool>) -> Self
pub fn set_ignore_public_acls(self, input: Option<bool>) -> Self
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
sourcepub fn get_ignore_public_acls(&self) -> &Option<bool>
pub fn get_ignore_public_acls(&self) -> &Option<bool>
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
sourcepub fn restrict_public_buckets(self, input: bool) -> Self
pub fn restrict_public_buckets(self, input: bool) -> Self
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
sourcepub fn set_restrict_public_buckets(self, input: Option<bool>) -> Self
pub fn set_restrict_public_buckets(self, input: Option<bool>) -> Self
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
sourcepub fn get_restrict_public_buckets(&self) -> &Option<bool>
pub fn get_restrict_public_buckets(&self) -> &Option<bool>
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
sourcepub fn build(self) -> BlockPublicAccess
pub fn build(self) -> BlockPublicAccess
Consumes the builder and constructs a BlockPublicAccess.
Trait Implementations§
source§impl Clone for BlockPublicAccessBuilder
impl Clone for BlockPublicAccessBuilder
source§fn clone(&self) -> BlockPublicAccessBuilder
fn clone(&self) -> BlockPublicAccessBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BlockPublicAccessBuilder
impl Debug for BlockPublicAccessBuilder
source§impl Default for BlockPublicAccessBuilder
impl Default for BlockPublicAccessBuilder
source§fn default() -> BlockPublicAccessBuilder
fn default() -> BlockPublicAccessBuilder
source§impl PartialEq for BlockPublicAccessBuilder
impl PartialEq for BlockPublicAccessBuilder
source§fn eq(&self, other: &BlockPublicAccessBuilder) -> bool
fn eq(&self, other: &BlockPublicAccessBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BlockPublicAccessBuilder
Auto Trait Implementations§
impl Freeze for BlockPublicAccessBuilder
impl RefUnwindSafe for BlockPublicAccessBuilder
impl Send for BlockPublicAccessBuilder
impl Sync for BlockPublicAccessBuilder
impl Unpin for BlockPublicAccessBuilder
impl UnwindSafe for BlockPublicAccessBuilder
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
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>
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>
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 more