Struct aws_sdk_s3control::types::builders::RegionalBucketBuilder
source · #[non_exhaustive]pub struct RegionalBucketBuilder { /* private fields */ }Expand description
A builder for RegionalBucket.
Implementations§
source§impl RegionalBucketBuilder
impl RegionalBucketBuilder
sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
sourcepub fn bucket_arn(self, input: impl Into<String>) -> Self
pub fn bucket_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the regional bucket.
sourcepub fn set_bucket_arn(self, input: Option<String>) -> Self
pub fn set_bucket_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the regional bucket.
sourcepub fn get_bucket_arn(&self) -> &Option<String>
pub fn get_bucket_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the regional bucket.
sourcepub fn public_access_block_enabled(self, input: bool) -> Self
pub fn public_access_block_enabled(self, input: bool) -> Self
This field is required.
sourcepub fn set_public_access_block_enabled(self, input: Option<bool>) -> Self
pub fn set_public_access_block_enabled(self, input: Option<bool>) -> Self
sourcepub fn get_public_access_block_enabled(&self) -> &Option<bool>
pub fn get_public_access_block_enabled(&self) -> &Option<bool>
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The creation date of the regional bucket
This field is required.sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The creation date of the regional bucket
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The creation date of the regional bucket
sourcepub fn outpost_id(self, input: impl Into<String>) -> Self
pub fn outpost_id(self, input: impl Into<String>) -> Self
The Outposts ID of the regional bucket.
sourcepub fn set_outpost_id(self, input: Option<String>) -> Self
pub fn set_outpost_id(self, input: Option<String>) -> Self
The Outposts ID of the regional bucket.
sourcepub fn get_outpost_id(&self) -> &Option<String>
pub fn get_outpost_id(&self) -> &Option<String>
The Outposts ID of the regional bucket.
sourcepub fn build(self) -> Result<RegionalBucket, BuildError>
pub fn build(self) -> Result<RegionalBucket, BuildError>
Consumes the builder and constructs a RegionalBucket.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RegionalBucketBuilder
impl Clone for RegionalBucketBuilder
source§fn clone(&self) -> RegionalBucketBuilder
fn clone(&self) -> RegionalBucketBuilder
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 RegionalBucketBuilder
impl Debug for RegionalBucketBuilder
source§impl Default for RegionalBucketBuilder
impl Default for RegionalBucketBuilder
source§fn default() -> RegionalBucketBuilder
fn default() -> RegionalBucketBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RegionalBucketBuilder
impl PartialEq for RegionalBucketBuilder
source§fn eq(&self, other: &RegionalBucketBuilder) -> bool
fn eq(&self, other: &RegionalBucketBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RegionalBucketBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RegionalBucketBuilder
impl Send for RegionalBucketBuilder
impl Sync for RegionalBucketBuilder
impl Unpin for RegionalBucketBuilder
impl UnwindSafe for RegionalBucketBuilder
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.