Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::delete_bucket_ownership_controls::builders::DeleteBucketOwnershipControlsInputBuilder
#[non_exhaustive]pub struct DeleteBucketOwnershipControlsInputBuilder { /* private fields */ }
Expand description
A builder for DeleteBucketOwnershipControlsInput
.
Implementations§
§impl DeleteBucketOwnershipControlsInputBuilder
impl DeleteBucketOwnershipControlsInputBuilder
pub fn bucket(
self,
input: impl Into<String>
) -> DeleteBucketOwnershipControlsInputBuilder
pub fn bucket( self, input: impl Into<String> ) -> DeleteBucketOwnershipControlsInputBuilder
The Amazon S3 bucket whose OwnershipControls
you want to delete.
pub fn set_bucket(
self,
input: Option<String>
) -> DeleteBucketOwnershipControlsInputBuilder
pub fn set_bucket( self, input: Option<String> ) -> DeleteBucketOwnershipControlsInputBuilder
The Amazon S3 bucket whose OwnershipControls
you want to delete.
pub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The Amazon S3 bucket whose OwnershipControls
you want to delete.
pub fn expected_bucket_owner(
self,
input: impl Into<String>
) -> DeleteBucketOwnershipControlsInputBuilder
pub fn expected_bucket_owner( self, input: impl Into<String> ) -> DeleteBucketOwnershipControlsInputBuilder
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>
) -> DeleteBucketOwnershipControlsInputBuilder
pub fn set_expected_bucket_owner( self, input: Option<String> ) -> DeleteBucketOwnershipControlsInputBuilder
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).
pub fn build(self) -> Result<DeleteBucketOwnershipControlsInput, BuildError>
pub fn build(self) -> Result<DeleteBucketOwnershipControlsInput, BuildError>
Consumes the builder and constructs a DeleteBucketOwnershipControlsInput
.
§impl DeleteBucketOwnershipControlsInputBuilder
impl DeleteBucketOwnershipControlsInputBuilder
pub async fn send_with(
self,
client: &Client
) -> Result<DeleteBucketOwnershipControlsOutput, SdkError<DeleteBucketOwnershipControlsError, Response<SdkBody>>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteBucketOwnershipControlsOutput, SdkError<DeleteBucketOwnershipControlsError, Response<SdkBody>>>
Sends a request with this input using the given client.
Trait Implementations§
§impl Clone for DeleteBucketOwnershipControlsInputBuilder
impl Clone for DeleteBucketOwnershipControlsInputBuilder
§fn clone(&self) -> DeleteBucketOwnershipControlsInputBuilder
fn clone(&self) -> DeleteBucketOwnershipControlsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Default for DeleteBucketOwnershipControlsInputBuilder
impl Default for DeleteBucketOwnershipControlsInputBuilder
§fn default() -> DeleteBucketOwnershipControlsInputBuilder
fn default() -> DeleteBucketOwnershipControlsInputBuilder
§impl PartialEq for DeleteBucketOwnershipControlsInputBuilder
impl PartialEq for DeleteBucketOwnershipControlsInputBuilder
§fn eq(&self, other: &DeleteBucketOwnershipControlsInputBuilder) -> bool
fn eq(&self, other: &DeleteBucketOwnershipControlsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.