Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::delete_bucket_policy::builders::DeleteBucketPolicyInputBuilder
pub struct DeleteBucketPolicyInputBuilder { /* private fields */ }
Expand description
A builder for DeleteBucketPolicyInput
.
Implementations§
§impl DeleteBucketPolicyInputBuilder
impl DeleteBucketPolicyInputBuilder
pub fn bucket(self, input: impl Into<String>) -> DeleteBucketPolicyInputBuilder
pub fn bucket(self, input: impl Into<String>) -> DeleteBucketPolicyInputBuilder
The bucket name.
pub fn set_bucket(self, input: Option<String>) -> DeleteBucketPolicyInputBuilder
pub fn set_bucket(self, input: Option<String>) -> DeleteBucketPolicyInputBuilder
The bucket name.
pub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The bucket name.
pub fn expected_bucket_owner(
self,
input: impl Into<String>
) -> DeleteBucketPolicyInputBuilder
pub fn expected_bucket_owner( self, input: impl Into<String> ) -> DeleteBucketPolicyInputBuilder
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>
) -> DeleteBucketPolicyInputBuilder
pub fn set_expected_bucket_owner( self, input: Option<String> ) -> DeleteBucketPolicyInputBuilder
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<DeleteBucketPolicyInput, BuildError>
pub fn build(self) -> Result<DeleteBucketPolicyInput, BuildError>
Consumes the builder and constructs a DeleteBucketPolicyInput
.
§impl DeleteBucketPolicyInputBuilder
impl DeleteBucketPolicyInputBuilder
pub async fn send_with(
self,
client: &Client
) -> impl Future<Output = Result<DeleteBucketPolicyOutput, SdkError<DeleteBucketPolicyError, Response<SdkBody>>>>
pub async fn send_with( self, client: &Client ) -> impl Future<Output = Result<DeleteBucketPolicyOutput, SdkError<DeleteBucketPolicyError, Response<SdkBody>>>>
Sends a request with this input using the given client.
Trait Implementations§
§impl Clone for DeleteBucketPolicyInputBuilder
impl Clone for DeleteBucketPolicyInputBuilder
§fn clone(&self) -> DeleteBucketPolicyInputBuilder
fn clone(&self) -> DeleteBucketPolicyInputBuilder
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 more§impl Debug for DeleteBucketPolicyInputBuilder
impl Debug for DeleteBucketPolicyInputBuilder
§impl Default for DeleteBucketPolicyInputBuilder
impl Default for DeleteBucketPolicyInputBuilder
§fn default() -> DeleteBucketPolicyInputBuilder
fn default() -> DeleteBucketPolicyInputBuilder
Returns the “default value” for a type. Read more
§impl PartialEq<DeleteBucketPolicyInputBuilder> for DeleteBucketPolicyInputBuilder
impl PartialEq<DeleteBucketPolicyInputBuilder> for DeleteBucketPolicyInputBuilder
§fn eq(&self, other: &DeleteBucketPolicyInputBuilder) -> bool
fn eq(&self, other: &DeleteBucketPolicyInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeleteBucketPolicyInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DeleteBucketPolicyInputBuilder
impl Send for DeleteBucketPolicyInputBuilder
impl Sync for DeleteBucketPolicyInputBuilder
impl Unpin for DeleteBucketPolicyInputBuilder
impl UnwindSafe for DeleteBucketPolicyInputBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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