Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::get_bucket_versioning::builders::GetBucketVersioningFluentBuilder
pub struct GetBucketVersioningFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetBucketVersioning
.
Returns the versioning state of a bucket.
To retrieve the versioning state of a bucket, you must be the bucket owner.
This implementation also returns the MFA Delete status of the versioning state. If the MFA Delete status is enabled
, the bucket owner must use an authentication device to change the versioning state of the bucket.
The following operations are related to GetBucketVersioning
:
Implementations§
§impl GetBucketVersioningFluentBuilder
impl GetBucketVersioningFluentBuilder
pub fn as_input(&self) -> &GetBucketVersioningInputBuilder
pub fn as_input(&self) -> &GetBucketVersioningInputBuilder
Access the GetBucketVersioning as a reference.
pub async fn send(
self
) -> impl Future<Output = Result<GetBucketVersioningOutput, SdkError<GetBucketVersioningError, Response<SdkBody>>>>
pub async fn send( self ) -> impl Future<Output = Result<GetBucketVersioningOutput, SdkError<GetBucketVersioningError, Response<SdkBody>>>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
pub async fn customize(
self
) -> impl Future<Output = Result<CustomizableOperation<GetBucketVersioningOutput, GetBucketVersioningError, GetBucketVersioningFluentBuilder>, SdkError<GetBucketVersioningError, Response>>>
pub async fn customize( self ) -> impl Future<Output = Result<CustomizableOperation<GetBucketVersioningOutput, GetBucketVersioningError, GetBucketVersioningFluentBuilder>, SdkError<GetBucketVersioningError, Response>>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
pub fn bucket(
self,
input: impl Into<String>
) -> GetBucketVersioningFluentBuilder
pub fn bucket( self, input: impl Into<String> ) -> GetBucketVersioningFluentBuilder
The name of the bucket for which to get the versioning information.
pub fn set_bucket(
self,
input: Option<String>
) -> GetBucketVersioningFluentBuilder
pub fn set_bucket( self, input: Option<String> ) -> GetBucketVersioningFluentBuilder
The name of the bucket for which to get the versioning information.
pub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The name of the bucket for which to get the versioning information.
pub fn expected_bucket_owner(
self,
input: impl Into<String>
) -> GetBucketVersioningFluentBuilder
pub fn expected_bucket_owner( self, input: impl Into<String> ) -> GetBucketVersioningFluentBuilder
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden
(access denied).
pub fn set_expected_bucket_owner(
self,
input: Option<String>
) -> GetBucketVersioningFluentBuilder
pub fn set_expected_bucket_owner( self, input: Option<String> ) -> GetBucketVersioningFluentBuilder
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden
(access denied).
pub fn get_expected_bucket_owner(&self) -> &Option<String>
pub fn get_expected_bucket_owner(&self) -> &Option<String>
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden
(access denied).
Trait Implementations§
§impl Clone for GetBucketVersioningFluentBuilder
impl Clone for GetBucketVersioningFluentBuilder
§fn clone(&self) -> GetBucketVersioningFluentBuilder
fn clone(&self) -> GetBucketVersioningFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more