Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::put_bucket_acl::builders::PutBucketAclInputBuilder
pub struct PutBucketAclInputBuilder { /* private fields */ }
Expand description
A builder for PutBucketAclInput
.
Implementations§
§impl PutBucketAclInputBuilder
impl PutBucketAclInputBuilder
pub fn acl(self, input: BucketCannedAcl) -> PutBucketAclInputBuilder
pub fn acl(self, input: BucketCannedAcl) -> PutBucketAclInputBuilder
The canned ACL to apply to the bucket.
pub fn set_acl(self, input: Option<BucketCannedAcl>) -> PutBucketAclInputBuilder
pub fn set_acl(self, input: Option<BucketCannedAcl>) -> PutBucketAclInputBuilder
The canned ACL to apply to the bucket.
pub fn get_acl(&self) -> &Option<BucketCannedAcl>
pub fn get_acl(&self) -> &Option<BucketCannedAcl>
The canned ACL to apply to the bucket.
pub fn access_control_policy(
self,
input: AccessControlPolicy
) -> PutBucketAclInputBuilder
pub fn access_control_policy( self, input: AccessControlPolicy ) -> PutBucketAclInputBuilder
Contains the elements that set the ACL permissions for an object per grantee.
pub fn set_access_control_policy(
self,
input: Option<AccessControlPolicy>
) -> PutBucketAclInputBuilder
pub fn set_access_control_policy( self, input: Option<AccessControlPolicy> ) -> PutBucketAclInputBuilder
Contains the elements that set the ACL permissions for an object per grantee.
pub fn get_access_control_policy(&self) -> &Option<AccessControlPolicy>
pub fn get_access_control_policy(&self) -> &Option<AccessControlPolicy>
Contains the elements that set the ACL permissions for an object per grantee.
pub fn bucket(self, input: impl Into<String>) -> PutBucketAclInputBuilder
pub fn bucket(self, input: impl Into<String>) -> PutBucketAclInputBuilder
The bucket to which to apply the ACL.
pub fn set_bucket(self, input: Option<String>) -> PutBucketAclInputBuilder
pub fn set_bucket(self, input: Option<String>) -> PutBucketAclInputBuilder
The bucket to which to apply the ACL.
pub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The bucket to which to apply the ACL.
pub fn content_md5(self, input: impl Into<String>) -> PutBucketAclInputBuilder
pub fn content_md5(self, input: impl Into<String>) -> PutBucketAclInputBuilder
The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.
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>) -> PutBucketAclInputBuilder
pub fn set_content_md5(self, input: Option<String>) -> PutBucketAclInputBuilder
The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.
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 base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.
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
) -> PutBucketAclInputBuilder
pub fn checksum_algorithm( self, input: ChecksumAlgorithm ) -> PutBucketAclInputBuilder
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>
) -> PutBucketAclInputBuilder
pub fn set_checksum_algorithm( self, input: Option<ChecksumAlgorithm> ) -> PutBucketAclInputBuilder
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 grant_full_control(
self,
input: impl Into<String>
) -> PutBucketAclInputBuilder
pub fn grant_full_control( self, input: impl Into<String> ) -> PutBucketAclInputBuilder
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
pub fn set_grant_full_control(
self,
input: Option<String>
) -> PutBucketAclInputBuilder
pub fn set_grant_full_control( self, input: Option<String> ) -> PutBucketAclInputBuilder
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
pub fn get_grant_full_control(&self) -> &Option<String>
pub fn get_grant_full_control(&self) -> &Option<String>
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
pub fn grant_read(self, input: impl Into<String>) -> PutBucketAclInputBuilder
pub fn grant_read(self, input: impl Into<String>) -> PutBucketAclInputBuilder
Allows grantee to list the objects in the bucket.
pub fn set_grant_read(self, input: Option<String>) -> PutBucketAclInputBuilder
pub fn set_grant_read(self, input: Option<String>) -> PutBucketAclInputBuilder
Allows grantee to list the objects in the bucket.
pub fn get_grant_read(&self) -> &Option<String>
pub fn get_grant_read(&self) -> &Option<String>
Allows grantee to list the objects in the bucket.
pub fn grant_read_acp(
self,
input: impl Into<String>
) -> PutBucketAclInputBuilder
pub fn grant_read_acp( self, input: impl Into<String> ) -> PutBucketAclInputBuilder
Allows grantee to read the bucket ACL.
pub fn set_grant_read_acp(
self,
input: Option<String>
) -> PutBucketAclInputBuilder
pub fn set_grant_read_acp( self, input: Option<String> ) -> PutBucketAclInputBuilder
Allows grantee to read the bucket ACL.
pub fn get_grant_read_acp(&self) -> &Option<String>
pub fn get_grant_read_acp(&self) -> &Option<String>
Allows grantee to read the bucket ACL.
pub fn grant_write(self, input: impl Into<String>) -> PutBucketAclInputBuilder
pub fn grant_write(self, input: impl Into<String>) -> PutBucketAclInputBuilder
Allows grantee to create new objects in the bucket.
For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.
pub fn set_grant_write(self, input: Option<String>) -> PutBucketAclInputBuilder
pub fn set_grant_write(self, input: Option<String>) -> PutBucketAclInputBuilder
Allows grantee to create new objects in the bucket.
For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.
pub fn get_grant_write(&self) -> &Option<String>
pub fn get_grant_write(&self) -> &Option<String>
Allows grantee to create new objects in the bucket.
For the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.
pub fn grant_write_acp(
self,
input: impl Into<String>
) -> PutBucketAclInputBuilder
pub fn grant_write_acp( self, input: impl Into<String> ) -> PutBucketAclInputBuilder
Allows grantee to write the ACL for the applicable bucket.
pub fn set_grant_write_acp(
self,
input: Option<String>
) -> PutBucketAclInputBuilder
pub fn set_grant_write_acp( self, input: Option<String> ) -> PutBucketAclInputBuilder
Allows grantee to write the ACL for the applicable bucket.
pub fn get_grant_write_acp(&self) -> &Option<String>
pub fn get_grant_write_acp(&self) -> &Option<String>
Allows grantee to write the ACL for the applicable bucket.
pub fn expected_bucket_owner(
self,
input: impl Into<String>
) -> PutBucketAclInputBuilder
pub fn expected_bucket_owner( self, input: impl Into<String> ) -> PutBucketAclInputBuilder
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>
) -> PutBucketAclInputBuilder
pub fn set_expected_bucket_owner( self, input: Option<String> ) -> PutBucketAclInputBuilder
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<PutBucketAclInput, BuildError>
pub fn build(self) -> Result<PutBucketAclInput, BuildError>
Consumes the builder and constructs a PutBucketAclInput
.
§impl PutBucketAclInputBuilder
impl PutBucketAclInputBuilder
pub async fn send_with(
self,
client: &Client
) -> impl Future<Output = Result<PutBucketAclOutput, SdkError<PutBucketAclError, Response<SdkBody>>>>
pub async fn send_with( self, client: &Client ) -> impl Future<Output = Result<PutBucketAclOutput, SdkError<PutBucketAclError, Response<SdkBody>>>>
Sends a request with this input using the given client.
Trait Implementations§
§impl Clone for PutBucketAclInputBuilder
impl Clone for PutBucketAclInputBuilder
§fn clone(&self) -> PutBucketAclInputBuilder
fn clone(&self) -> PutBucketAclInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for PutBucketAclInputBuilder
impl Debug for PutBucketAclInputBuilder
§impl Default for PutBucketAclInputBuilder
impl Default for PutBucketAclInputBuilder
§fn default() -> PutBucketAclInputBuilder
fn default() -> PutBucketAclInputBuilder
§impl PartialEq<PutBucketAclInputBuilder> for PutBucketAclInputBuilder
impl PartialEq<PutBucketAclInputBuilder> for PutBucketAclInputBuilder
§fn eq(&self, other: &PutBucketAclInputBuilder) -> bool
fn eq(&self, other: &PutBucketAclInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.