Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::put_bucket_policy::builders::PutBucketPolicyInputBuilder
pub struct PutBucketPolicyInputBuilder { /* private fields */ }
Expand description
A builder for PutBucketPolicyInput
.
Implementations§
§impl PutBucketPolicyInputBuilder
impl PutBucketPolicyInputBuilder
pub fn bucket(self, input: impl Into<String>) -> PutBucketPolicyInputBuilder
pub fn bucket(self, input: impl Into<String>) -> PutBucketPolicyInputBuilder
The name of the bucket.
pub fn set_bucket(self, input: Option<String>) -> PutBucketPolicyInputBuilder
pub fn set_bucket(self, input: Option<String>) -> PutBucketPolicyInputBuilder
The name of the bucket.
pub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The name of the bucket.
pub fn content_md5(
self,
input: impl Into<String>
) -> PutBucketPolicyInputBuilder
pub fn content_md5( self, input: impl Into<String> ) -> PutBucketPolicyInputBuilder
The MD5 hash of the 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>
) -> PutBucketPolicyInputBuilder
pub fn set_content_md5( self, input: Option<String> ) -> PutBucketPolicyInputBuilder
The MD5 hash of the 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 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 checksum_algorithm(
self,
input: ChecksumAlgorithm
) -> PutBucketPolicyInputBuilder
pub fn checksum_algorithm( self, input: ChecksumAlgorithm ) -> PutBucketPolicyInputBuilder
Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending this header, there must be a corresponding x-amz-checksum
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
. For more information, see Checking object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
pub fn set_checksum_algorithm(
self,
input: Option<ChecksumAlgorithm>
) -> PutBucketPolicyInputBuilder
pub fn set_checksum_algorithm( self, input: Option<ChecksumAlgorithm> ) -> PutBucketPolicyInputBuilder
Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending this header, there must be a corresponding x-amz-checksum
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
. For more information, see Checking object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
pub fn get_checksum_algorithm(&self) -> &Option<ChecksumAlgorithm>
pub fn get_checksum_algorithm(&self) -> &Option<ChecksumAlgorithm>
Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending this header, there must be a corresponding x-amz-checksum
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
. For more information, see Checking object integrity in the Amazon S3 User Guide.
If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter.
pub fn confirm_remove_self_bucket_access(
self,
input: bool
) -> PutBucketPolicyInputBuilder
pub fn confirm_remove_self_bucket_access( self, input: bool ) -> PutBucketPolicyInputBuilder
Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future.
pub fn set_confirm_remove_self_bucket_access(
self,
input: Option<bool>
) -> PutBucketPolicyInputBuilder
pub fn set_confirm_remove_self_bucket_access( self, input: Option<bool> ) -> PutBucketPolicyInputBuilder
Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future.
pub fn get_confirm_remove_self_bucket_access(&self) -> &Option<bool>
pub fn get_confirm_remove_self_bucket_access(&self) -> &Option<bool>
Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future.
pub fn policy(self, input: impl Into<String>) -> PutBucketPolicyInputBuilder
pub fn policy(self, input: impl Into<String>) -> PutBucketPolicyInputBuilder
The bucket policy as a JSON document.
pub fn set_policy(self, input: Option<String>) -> PutBucketPolicyInputBuilder
pub fn set_policy(self, input: Option<String>) -> PutBucketPolicyInputBuilder
The bucket policy as a JSON document.
pub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &Option<String>
The bucket policy as a JSON document.
pub fn expected_bucket_owner(
self,
input: impl Into<String>
) -> PutBucketPolicyInputBuilder
pub fn expected_bucket_owner( self, input: impl Into<String> ) -> PutBucketPolicyInputBuilder
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>
) -> PutBucketPolicyInputBuilder
pub fn set_expected_bucket_owner( self, input: Option<String> ) -> PutBucketPolicyInputBuilder
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<PutBucketPolicyInput, BuildError>
pub fn build(self) -> Result<PutBucketPolicyInput, BuildError>
Consumes the builder and constructs a PutBucketPolicyInput
.
§impl PutBucketPolicyInputBuilder
impl PutBucketPolicyInputBuilder
pub async fn send_with(
self,
client: &Client
) -> impl Future<Output = Result<PutBucketPolicyOutput, SdkError<PutBucketPolicyError, Response<SdkBody>>>>
pub async fn send_with( self, client: &Client ) -> impl Future<Output = Result<PutBucketPolicyOutput, SdkError<PutBucketPolicyError, Response<SdkBody>>>>
Sends a request with this input using the given client.
Trait Implementations§
§impl Clone for PutBucketPolicyInputBuilder
impl Clone for PutBucketPolicyInputBuilder
§fn clone(&self) -> PutBucketPolicyInputBuilder
fn clone(&self) -> PutBucketPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for PutBucketPolicyInputBuilder
impl Debug for PutBucketPolicyInputBuilder
§impl Default for PutBucketPolicyInputBuilder
impl Default for PutBucketPolicyInputBuilder
§fn default() -> PutBucketPolicyInputBuilder
fn default() -> PutBucketPolicyInputBuilder
§impl PartialEq<PutBucketPolicyInputBuilder> for PutBucketPolicyInputBuilder
impl PartialEq<PutBucketPolicyInputBuilder> for PutBucketPolicyInputBuilder
§fn eq(&self, other: &PutBucketPolicyInputBuilder) -> bool
fn eq(&self, other: &PutBucketPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.