#[non_exhaustive]pub struct UpdateBucketInputBuilder { /* private fields */ }
Expand description
A builder for UpdateBucketInput
.
Implementations§
source§impl UpdateBucketInputBuilder
impl UpdateBucketInputBuilder
sourcepub fn bucket_name(self, input: impl Into<String>) -> Self
pub fn bucket_name(self, input: impl Into<String>) -> Self
The name of the bucket to update.
This field is required.sourcepub fn set_bucket_name(self, input: Option<String>) -> Self
pub fn set_bucket_name(self, input: Option<String>) -> Self
The name of the bucket to update.
sourcepub fn get_bucket_name(&self) -> &Option<String>
pub fn get_bucket_name(&self) -> &Option<String>
The name of the bucket to update.
sourcepub fn access_rules(self, input: AccessRules) -> Self
pub fn access_rules(self, input: AccessRules) -> Self
An object that sets the public accessibility of objects in the specified bucket.
sourcepub fn set_access_rules(self, input: Option<AccessRules>) -> Self
pub fn set_access_rules(self, input: Option<AccessRules>) -> Self
An object that sets the public accessibility of objects in the specified bucket.
sourcepub fn get_access_rules(&self) -> &Option<AccessRules>
pub fn get_access_rules(&self) -> &Option<AccessRules>
An object that sets the public accessibility of objects in the specified bucket.
sourcepub fn versioning(self, input: impl Into<String>) -> Self
pub fn versioning(self, input: impl Into<String>) -> Self
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
-
Enabled
- Enables versioning of objects in the specified bucket. -
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions are retained.
sourcepub fn set_versioning(self, input: Option<String>) -> Self
pub fn set_versioning(self, input: Option<String>) -> Self
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
-
Enabled
- Enables versioning of objects in the specified bucket. -
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions are retained.
sourcepub fn get_versioning(&self) -> &Option<String>
pub fn get_versioning(&self) -> &Option<String>
Specifies whether to enable or suspend versioning of objects in the bucket.
The following options can be specified:
-
Enabled
- Enables versioning of objects in the specified bucket. -
Suspended
- Suspends versioning of objects in the specified bucket. Existing object versions are retained.
sourcepub fn readonly_access_accounts(self, input: impl Into<String>) -> Self
pub fn readonly_access_accounts(self, input: impl Into<String>) -> Self
Appends an item to readonly_access_accounts
.
To override the contents of this collection use set_readonly_access_accounts
.
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
sourcepub fn set_readonly_access_accounts(self, input: Option<Vec<String>>) -> Self
pub fn set_readonly_access_accounts(self, input: Option<Vec<String>>) -> Self
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
sourcepub fn get_readonly_access_accounts(&self) -> &Option<Vec<String>>
pub fn get_readonly_access_accounts(&self) -> &Option<Vec<String>>
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
sourcepub fn access_log_config(self, input: BucketAccessLogConfig) -> Self
pub fn access_log_config(self, input: BucketAccessLogConfig) -> Self
An object that describes the access log configuration for the bucket.
sourcepub fn set_access_log_config(self, input: Option<BucketAccessLogConfig>) -> Self
pub fn set_access_log_config(self, input: Option<BucketAccessLogConfig>) -> Self
An object that describes the access log configuration for the bucket.
sourcepub fn get_access_log_config(&self) -> &Option<BucketAccessLogConfig>
pub fn get_access_log_config(&self) -> &Option<BucketAccessLogConfig>
An object that describes the access log configuration for the bucket.
sourcepub fn build(self) -> Result<UpdateBucketInput, BuildError>
pub fn build(self) -> Result<UpdateBucketInput, BuildError>
Consumes the builder and constructs a UpdateBucketInput
.
source§impl UpdateBucketInputBuilder
impl UpdateBucketInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateBucketOutput, SdkError<UpdateBucketError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateBucketOutput, SdkError<UpdateBucketError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateBucketInputBuilder
impl Clone for UpdateBucketInputBuilder
source§fn clone(&self) -> UpdateBucketInputBuilder
fn clone(&self) -> UpdateBucketInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateBucketInputBuilder
impl Debug for UpdateBucketInputBuilder
source§impl Default for UpdateBucketInputBuilder
impl Default for UpdateBucketInputBuilder
source§fn default() -> UpdateBucketInputBuilder
fn default() -> UpdateBucketInputBuilder
source§impl PartialEq for UpdateBucketInputBuilder
impl PartialEq for UpdateBucketInputBuilder
source§fn eq(&self, other: &UpdateBucketInputBuilder) -> bool
fn eq(&self, other: &UpdateBucketInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateBucketInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateBucketInputBuilder
impl RefUnwindSafe for UpdateBucketInputBuilder
impl Send for UpdateBucketInputBuilder
impl Sync for UpdateBucketInputBuilder
impl Unpin for UpdateBucketInputBuilder
impl UnwindSafe for UpdateBucketInputBuilder
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