pub struct CreateBucketFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateBucket
.
Creates an Amazon Lightsail bucket.
A bucket is a cloud storage resource available in the Lightsail object storage service. Use buckets to store objects such as data and its descriptive metadata. For more information about buckets, see Buckets in Amazon Lightsail in the Amazon Lightsail Developer Guide.
Implementations§
source§impl CreateBucketFluentBuilder
impl CreateBucketFluentBuilder
sourcepub fn as_input(&self) -> &CreateBucketInputBuilder
pub fn as_input(&self) -> &CreateBucketInputBuilder
Access the CreateBucket as a reference.
sourcepub async fn send(
self
) -> Result<CreateBucketOutput, SdkError<CreateBucketError, HttpResponse>>
pub async fn send( self ) -> Result<CreateBucketOutput, SdkError<CreateBucketError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateBucketOutput, CreateBucketError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateBucketOutput, CreateBucketError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn bucket_name(self, input: impl Into<String>) -> Self
pub fn bucket_name(self, input: impl Into<String>) -> Self
The name for the bucket.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
sourcepub fn set_bucket_name(self, input: Option<String>) -> Self
pub fn set_bucket_name(self, input: Option<String>) -> Self
The name for the bucket.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
sourcepub fn get_bucket_name(&self) -> &Option<String>
pub fn get_bucket_name(&self) -> &Option<String>
The name for the bucket.
For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.
sourcepub fn bundle_id(self, input: impl Into<String>) -> Self
pub fn bundle_id(self, input: impl Into<String>) -> Self
The ID of the bundle to use for the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
sourcepub fn set_bundle_id(self, input: Option<String>) -> Self
pub fn set_bundle_id(self, input: Option<String>) -> Self
The ID of the bundle to use for the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
sourcepub fn get_bundle_id(&self) -> &Option<String>
pub fn get_bundle_id(&self) -> &Option<String>
The ID of the bundle to use for the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the GetBucketBundles action to get a list of bundle IDs that you can specify.
Use the UpdateBucketBundle action to change the bundle after the bucket is created.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
The tag keys and optional values to add to the bucket during creation.
Use the TagResource action to tag the bucket after it's created.
sourcepub fn enable_object_versioning(self, input: bool) -> Self
pub fn enable_object_versioning(self, input: bool) -> Self
A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
sourcepub fn set_enable_object_versioning(self, input: Option<bool>) -> Self
pub fn set_enable_object_versioning(self, input: Option<bool>) -> Self
A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
sourcepub fn get_enable_object_versioning(&self) -> &Option<bool>
pub fn get_enable_object_versioning(&self) -> &Option<bool>
A Boolean value that indicates whether to enable versioning of objects in the bucket.
For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
Trait Implementations§
source§impl Clone for CreateBucketFluentBuilder
impl Clone for CreateBucketFluentBuilder
source§fn clone(&self) -> CreateBucketFluentBuilder
fn clone(&self) -> CreateBucketFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateBucketFluentBuilder
impl !RefUnwindSafe for CreateBucketFluentBuilder
impl Send for CreateBucketFluentBuilder
impl Sync for CreateBucketFluentBuilder
impl Unpin for CreateBucketFluentBuilder
impl !UnwindSafe for CreateBucketFluentBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more