pub struct CreateBucketRequestBuilder { /* private fields */ }Expand description
Builder for CreateBucketRequest.
Implementations§
Source§impl CreateBucketRequestBuilder
impl CreateBucketRequestBuilder
Sourcepub fn acl<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn acl<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
The canned ACL to apply to the bucket.
Sourcepub fn bucket<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn bucket<VALUE: Into<String>>(self, value: VALUE) -> Self
The name of the bucket to create.
Sourcepub fn create_bucket_configuration<VALUE: Into<Option<CreateBucketConfiguration>>>(
self,
value: VALUE,
) -> Self
pub fn create_bucket_configuration<VALUE: Into<Option<CreateBucketConfiguration>>>( self, value: VALUE, ) -> Self
The configuration information for the bucket.
Sourcepub fn grant_full_control<VALUE: Into<Option<String>>>(
self,
value: VALUE,
) -> Self
pub fn grant_full_control<VALUE: Into<Option<String>>>( self, value: VALUE, ) -> Self
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
Sourcepub fn grant_read<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn grant_read<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
Allows grantee to list the objects in the bucket.
Sourcepub fn grant_read_acp<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn grant_read_acp<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
Allows grantee to read the bucket ACL.
Sourcepub fn grant_write<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn grant_write<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
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.
Sourcepub fn grant_write_acp<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn grant_write_acp<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
Allows grantee to write the ACL for the applicable bucket.
Sourcepub fn object_lock_enabled_for_bucket<VALUE: Into<Option<bool>>>(
self,
value: VALUE,
) -> Self
pub fn object_lock_enabled_for_bucket<VALUE: Into<Option<bool>>>( self, value: VALUE, ) -> Self
Specifies whether you want S3 Object Lock to be enabled for the new bucket.
Sourcepub fn build(
self,
) -> Result<CreateBucketRequest, CreateBucketRequestBuilderError>
pub fn build( self, ) -> Result<CreateBucketRequest, CreateBucketRequestBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateBucketRequestBuilder
impl RefUnwindSafe for CreateBucketRequestBuilder
impl Send for CreateBucketRequestBuilder
impl Sync for CreateBucketRequestBuilder
impl Unpin for CreateBucketRequestBuilder
impl UnwindSafe for CreateBucketRequestBuilder
Blanket Implementations§
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