Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::create_bucket::builders::CreateBucketInputBuilder
#[non_exhaustive]pub struct CreateBucketInputBuilder { /* private fields */ }
Expand description
A builder for CreateBucketInput
.
Implementations§
§impl CreateBucketInputBuilder
impl CreateBucketInputBuilder
pub fn acl(self, input: BucketCannedAcl) -> CreateBucketInputBuilder
pub fn acl(self, input: BucketCannedAcl) -> CreateBucketInputBuilder
The canned ACL to apply to the bucket.
pub fn set_acl(self, input: Option<BucketCannedAcl>) -> CreateBucketInputBuilder
pub fn set_acl(self, input: Option<BucketCannedAcl>) -> CreateBucketInputBuilder
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 bucket(self, input: impl Into<String>) -> CreateBucketInputBuilder
pub fn bucket(self, input: impl Into<String>) -> CreateBucketInputBuilder
The name of the bucket to create.
pub fn set_bucket(self, input: Option<String>) -> CreateBucketInputBuilder
pub fn set_bucket(self, input: Option<String>) -> CreateBucketInputBuilder
The name of the bucket to create.
pub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The name of the bucket to create.
pub fn create_bucket_configuration(
self,
input: CreateBucketConfiguration
) -> CreateBucketInputBuilder
pub fn create_bucket_configuration( self, input: CreateBucketConfiguration ) -> CreateBucketInputBuilder
The configuration information for the bucket.
pub fn set_create_bucket_configuration(
self,
input: Option<CreateBucketConfiguration>
) -> CreateBucketInputBuilder
pub fn set_create_bucket_configuration( self, input: Option<CreateBucketConfiguration> ) -> CreateBucketInputBuilder
The configuration information for the bucket.
pub fn get_create_bucket_configuration(
&self
) -> &Option<CreateBucketConfiguration>
pub fn get_create_bucket_configuration( &self ) -> &Option<CreateBucketConfiguration>
The configuration information for the bucket.
pub fn grant_full_control(
self,
input: impl Into<String>
) -> CreateBucketInputBuilder
pub fn grant_full_control( self, input: impl Into<String> ) -> CreateBucketInputBuilder
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
pub fn set_grant_full_control(
self,
input: Option<String>
) -> CreateBucketInputBuilder
pub fn set_grant_full_control( self, input: Option<String> ) -> CreateBucketInputBuilder
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>) -> CreateBucketInputBuilder
pub fn grant_read(self, input: impl Into<String>) -> CreateBucketInputBuilder
Allows grantee to list the objects in the bucket.
pub fn set_grant_read(self, input: Option<String>) -> CreateBucketInputBuilder
pub fn set_grant_read(self, input: Option<String>) -> CreateBucketInputBuilder
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>
) -> CreateBucketInputBuilder
pub fn grant_read_acp( self, input: impl Into<String> ) -> CreateBucketInputBuilder
Allows grantee to read the bucket ACL.
pub fn set_grant_read_acp(
self,
input: Option<String>
) -> CreateBucketInputBuilder
pub fn set_grant_read_acp( self, input: Option<String> ) -> CreateBucketInputBuilder
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>) -> CreateBucketInputBuilder
pub fn grant_write(self, input: impl Into<String>) -> CreateBucketInputBuilder
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>) -> CreateBucketInputBuilder
pub fn set_grant_write(self, input: Option<String>) -> CreateBucketInputBuilder
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>
) -> CreateBucketInputBuilder
pub fn grant_write_acp( self, input: impl Into<String> ) -> CreateBucketInputBuilder
Allows grantee to write the ACL for the applicable bucket.
pub fn set_grant_write_acp(
self,
input: Option<String>
) -> CreateBucketInputBuilder
pub fn set_grant_write_acp( self, input: Option<String> ) -> CreateBucketInputBuilder
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 object_lock_enabled_for_bucket(
self,
input: bool
) -> CreateBucketInputBuilder
pub fn object_lock_enabled_for_bucket( self, input: bool ) -> CreateBucketInputBuilder
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
pub fn set_object_lock_enabled_for_bucket(
self,
input: Option<bool>
) -> CreateBucketInputBuilder
pub fn set_object_lock_enabled_for_bucket( self, input: Option<bool> ) -> CreateBucketInputBuilder
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
pub fn get_object_lock_enabled_for_bucket(&self) -> &Option<bool>
pub fn get_object_lock_enabled_for_bucket(&self) -> &Option<bool>
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
pub fn object_ownership(
self,
input: ObjectOwnership
) -> CreateBucketInputBuilder
pub fn object_ownership( self, input: ObjectOwnership ) -> CreateBucketInputBuilder
The container element for object ownership for a bucket's ownership controls.
BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the bucket-owner-full-control
canned ACL.
ObjectWriter - The uploading account will own the object if the object is uploaded with the bucket-owner-full-control
canned ACL.
BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer affect permissions. The bucket owner automatically owns and has full control over every object in the bucket. The bucket only accepts PUT requests that don't specify an ACL or bucket owner full control ACLs, such as the bucket-owner-full-control
canned ACL or an equivalent form of this ACL expressed in the XML format.
pub fn set_object_ownership(
self,
input: Option<ObjectOwnership>
) -> CreateBucketInputBuilder
pub fn set_object_ownership( self, input: Option<ObjectOwnership> ) -> CreateBucketInputBuilder
The container element for object ownership for a bucket's ownership controls.
BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the bucket-owner-full-control
canned ACL.
ObjectWriter - The uploading account will own the object if the object is uploaded with the bucket-owner-full-control
canned ACL.
BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer affect permissions. The bucket owner automatically owns and has full control over every object in the bucket. The bucket only accepts PUT requests that don't specify an ACL or bucket owner full control ACLs, such as the bucket-owner-full-control
canned ACL or an equivalent form of this ACL expressed in the XML format.
pub fn get_object_ownership(&self) -> &Option<ObjectOwnership>
pub fn get_object_ownership(&self) -> &Option<ObjectOwnership>
The container element for object ownership for a bucket's ownership controls.
BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the bucket-owner-full-control
canned ACL.
ObjectWriter - The uploading account will own the object if the object is uploaded with the bucket-owner-full-control
canned ACL.
BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer affect permissions. The bucket owner automatically owns and has full control over every object in the bucket. The bucket only accepts PUT requests that don't specify an ACL or bucket owner full control ACLs, such as the bucket-owner-full-control
canned ACL or an equivalent form of this ACL expressed in the XML format.
pub fn build(self) -> Result<CreateBucketInput, BuildError>
pub fn build(self) -> Result<CreateBucketInput, BuildError>
Consumes the builder and constructs a CreateBucketInput
.
§impl CreateBucketInputBuilder
impl CreateBucketInputBuilder
pub async fn send_with(
self,
client: &Client
) -> Result<CreateBucketOutput, SdkError<CreateBucketError, Response<SdkBody>>>
pub async fn send_with( self, client: &Client ) -> Result<CreateBucketOutput, SdkError<CreateBucketError, Response<SdkBody>>>
Sends a request with this input using the given client.
Trait Implementations§
§impl Clone for CreateBucketInputBuilder
impl Clone for CreateBucketInputBuilder
§fn clone(&self) -> CreateBucketInputBuilder
fn clone(&self) -> CreateBucketInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for CreateBucketInputBuilder
impl Debug for CreateBucketInputBuilder
§impl Default for CreateBucketInputBuilder
impl Default for CreateBucketInputBuilder
§fn default() -> CreateBucketInputBuilder
fn default() -> CreateBucketInputBuilder
§impl PartialEq for CreateBucketInputBuilder
impl PartialEq for CreateBucketInputBuilder
§fn eq(&self, other: &CreateBucketInputBuilder) -> bool
fn eq(&self, other: &CreateBucketInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.