Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::put_bucket_ownership_controls::builders::PutBucketOwnershipControlsInputBuilder
pub struct PutBucketOwnershipControlsInputBuilder { /* private fields */ }
Expand description
A builder for PutBucketOwnershipControlsInput
.
Implementations§
§impl PutBucketOwnershipControlsInputBuilder
impl PutBucketOwnershipControlsInputBuilder
pub fn bucket(
self,
input: impl Into<String>
) -> PutBucketOwnershipControlsInputBuilder
pub fn bucket( self, input: impl Into<String> ) -> PutBucketOwnershipControlsInputBuilder
The name of the Amazon S3 bucket whose OwnershipControls
you want to set.
pub fn set_bucket(
self,
input: Option<String>
) -> PutBucketOwnershipControlsInputBuilder
pub fn set_bucket( self, input: Option<String> ) -> PutBucketOwnershipControlsInputBuilder
The name of the Amazon S3 bucket whose OwnershipControls
you want to set.
pub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The name of the Amazon S3 bucket whose OwnershipControls
you want to set.
pub fn content_md5(
self,
input: impl Into<String>
) -> PutBucketOwnershipControlsInputBuilder
pub fn content_md5( self, input: impl Into<String> ) -> PutBucketOwnershipControlsInputBuilder
The MD5 hash of the OwnershipControls
request body.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
pub fn set_content_md5(
self,
input: Option<String>
) -> PutBucketOwnershipControlsInputBuilder
pub fn set_content_md5( self, input: Option<String> ) -> PutBucketOwnershipControlsInputBuilder
The MD5 hash of the OwnershipControls
request body.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
pub fn get_content_md5(&self) -> &Option<String>
pub fn get_content_md5(&self) -> &Option<String>
The MD5 hash of the OwnershipControls
request body.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
pub fn expected_bucket_owner(
self,
input: impl Into<String>
) -> PutBucketOwnershipControlsInputBuilder
pub fn expected_bucket_owner( self, input: impl Into<String> ) -> PutBucketOwnershipControlsInputBuilder
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>
) -> PutBucketOwnershipControlsInputBuilder
pub fn set_expected_bucket_owner( self, input: Option<String> ) -> PutBucketOwnershipControlsInputBuilder
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 ownership_controls(
self,
input: OwnershipControls
) -> PutBucketOwnershipControlsInputBuilder
pub fn ownership_controls( self, input: OwnershipControls ) -> PutBucketOwnershipControlsInputBuilder
The OwnershipControls
(BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want to apply to this Amazon S3 bucket.
pub fn set_ownership_controls(
self,
input: Option<OwnershipControls>
) -> PutBucketOwnershipControlsInputBuilder
pub fn set_ownership_controls( self, input: Option<OwnershipControls> ) -> PutBucketOwnershipControlsInputBuilder
The OwnershipControls
(BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want to apply to this Amazon S3 bucket.
pub fn get_ownership_controls(&self) -> &Option<OwnershipControls>
pub fn get_ownership_controls(&self) -> &Option<OwnershipControls>
The OwnershipControls
(BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want to apply to this Amazon S3 bucket.
pub fn build(self) -> Result<PutBucketOwnershipControlsInput, BuildError>
pub fn build(self) -> Result<PutBucketOwnershipControlsInput, BuildError>
Consumes the builder and constructs a PutBucketOwnershipControlsInput
.
§impl PutBucketOwnershipControlsInputBuilder
impl PutBucketOwnershipControlsInputBuilder
pub async fn send_with(
self,
client: &Client
) -> impl Future<Output = Result<PutBucketOwnershipControlsOutput, SdkError<PutBucketOwnershipControlsError, Response<SdkBody>>>>
pub async fn send_with( self, client: &Client ) -> impl Future<Output = Result<PutBucketOwnershipControlsOutput, SdkError<PutBucketOwnershipControlsError, Response<SdkBody>>>>
Sends a request with this input using the given client.
Trait Implementations§
§impl Clone for PutBucketOwnershipControlsInputBuilder
impl Clone for PutBucketOwnershipControlsInputBuilder
§fn clone(&self) -> PutBucketOwnershipControlsInputBuilder
fn clone(&self) -> PutBucketOwnershipControlsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Default for PutBucketOwnershipControlsInputBuilder
impl Default for PutBucketOwnershipControlsInputBuilder
§fn default() -> PutBucketOwnershipControlsInputBuilder
fn default() -> PutBucketOwnershipControlsInputBuilder
§impl PartialEq<PutBucketOwnershipControlsInputBuilder> for PutBucketOwnershipControlsInputBuilder
impl PartialEq<PutBucketOwnershipControlsInputBuilder> for PutBucketOwnershipControlsInputBuilder
§fn eq(&self, other: &PutBucketOwnershipControlsInputBuilder) -> bool
fn eq(&self, other: &PutBucketOwnershipControlsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.