#[non_exhaustive]pub struct CreateBucketConfigurationBuilder { /* private fields */ }
Expand description
A builder for CreateBucketConfiguration
.
Implementations§
source§impl CreateBucketConfigurationBuilder
impl CreateBucketConfigurationBuilder
sourcepub fn location_constraint(self, input: BucketLocationConstraint) -> Self
pub fn location_constraint(self, input: BucketLocationConstraint) -> Self
Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.
If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.
This functionality is not supported for directory buckets.
sourcepub fn set_location_constraint(
self,
input: Option<BucketLocationConstraint>,
) -> Self
pub fn set_location_constraint( self, input: Option<BucketLocationConstraint>, ) -> Self
Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.
If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.
This functionality is not supported for directory buckets.
sourcepub fn get_location_constraint(&self) -> &Option<BucketLocationConstraint>
pub fn get_location_constraint(&self) -> &Option<BucketLocationConstraint>
Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.
If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.
This functionality is not supported for directory buckets.
sourcepub fn location(self, input: LocationInfo) -> Self
pub fn location(self, input: LocationInfo) -> Self
Specifies the location where the bucket will be created.
For directory buckets, the location type is Availability Zone.
This functionality is only supported by directory buckets.
sourcepub fn set_location(self, input: Option<LocationInfo>) -> Self
pub fn set_location(self, input: Option<LocationInfo>) -> Self
Specifies the location where the bucket will be created.
For directory buckets, the location type is Availability Zone.
This functionality is only supported by directory buckets.
sourcepub fn get_location(&self) -> &Option<LocationInfo>
pub fn get_location(&self) -> &Option<LocationInfo>
Specifies the location where the bucket will be created.
For directory buckets, the location type is Availability Zone.
This functionality is only supported by directory buckets.
sourcepub fn bucket(self, input: BucketInfo) -> Self
pub fn bucket(self, input: BucketInfo) -> Self
Specifies the information about the bucket that will be created.
This functionality is only supported by directory buckets.
sourcepub fn set_bucket(self, input: Option<BucketInfo>) -> Self
pub fn set_bucket(self, input: Option<BucketInfo>) -> Self
Specifies the information about the bucket that will be created.
This functionality is only supported by directory buckets.
sourcepub fn get_bucket(&self) -> &Option<BucketInfo>
pub fn get_bucket(&self) -> &Option<BucketInfo>
Specifies the information about the bucket that will be created.
This functionality is only supported by directory buckets.
sourcepub fn build(self) -> CreateBucketConfiguration
pub fn build(self) -> CreateBucketConfiguration
Consumes the builder and constructs a CreateBucketConfiguration
.
Trait Implementations§
source§impl Clone for CreateBucketConfigurationBuilder
impl Clone for CreateBucketConfigurationBuilder
source§fn clone(&self) -> CreateBucketConfigurationBuilder
fn clone(&self) -> CreateBucketConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateBucketConfigurationBuilder
impl Default for CreateBucketConfigurationBuilder
source§fn default() -> CreateBucketConfigurationBuilder
fn default() -> CreateBucketConfigurationBuilder
source§impl PartialEq for CreateBucketConfigurationBuilder
impl PartialEq for CreateBucketConfigurationBuilder
source§fn eq(&self, other: &CreateBucketConfigurationBuilder) -> bool
fn eq(&self, other: &CreateBucketConfigurationBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateBucketConfigurationBuilder
Auto Trait Implementations§
impl Freeze for CreateBucketConfigurationBuilder
impl RefUnwindSafe for CreateBucketConfigurationBuilder
impl Send for CreateBucketConfigurationBuilder
impl Sync for CreateBucketConfigurationBuilder
impl Unpin for CreateBucketConfigurationBuilder
impl UnwindSafe for CreateBucketConfigurationBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)