#[non_exhaustive]pub struct S3PublicAccessBlockConfigurationBuilder { /* private fields */ }Expand description
A builder for S3PublicAccessBlockConfiguration.
Implementations§
source§impl S3PublicAccessBlockConfigurationBuilder
impl S3PublicAccessBlockConfigurationBuilder
sourcepub fn ignore_public_acls(self, input: bool) -> Self
pub fn ignore_public_acls(self, input: bool) -> Self
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
This field is required.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 should ignore public ACLs for this bucket and objects in this bucket.
sourcepub fn get_ignore_public_acls(&self) -> &Option<bool>
pub fn get_ignore_public_acls(&self) -> &Option<bool>
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
sourcepub fn restrict_public_buckets(self, input: bool) -> Self
pub fn restrict_public_buckets(self, input: bool) -> Self
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
This field is required.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 should restrict public bucket policies for this bucket.
sourcepub fn get_restrict_public_buckets(&self) -> &Option<bool>
pub fn get_restrict_public_buckets(&self) -> &Option<bool>
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
sourcepub fn build(self) -> Result<S3PublicAccessBlockConfiguration, BuildError>
pub fn build(self) -> Result<S3PublicAccessBlockConfiguration, BuildError>
Consumes the builder and constructs a S3PublicAccessBlockConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for S3PublicAccessBlockConfigurationBuilder
impl Clone for S3PublicAccessBlockConfigurationBuilder
source§fn clone(&self) -> S3PublicAccessBlockConfigurationBuilder
fn clone(&self) -> S3PublicAccessBlockConfigurationBuilder
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 Default for S3PublicAccessBlockConfigurationBuilder
impl Default for S3PublicAccessBlockConfigurationBuilder
source§fn default() -> S3PublicAccessBlockConfigurationBuilder
fn default() -> S3PublicAccessBlockConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for S3PublicAccessBlockConfigurationBuilder
impl PartialEq for S3PublicAccessBlockConfigurationBuilder
source§fn eq(&self, other: &S3PublicAccessBlockConfigurationBuilder) -> bool
fn eq(&self, other: &S3PublicAccessBlockConfigurationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for S3PublicAccessBlockConfigurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for S3PublicAccessBlockConfigurationBuilder
impl Send for S3PublicAccessBlockConfigurationBuilder
impl Sync for S3PublicAccessBlockConfigurationBuilder
impl Unpin for S3PublicAccessBlockConfigurationBuilder
impl UnwindSafe for S3PublicAccessBlockConfigurationBuilder
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.