Struct aws_sdk_lightsail::types::builders::BucketBundleBuilder
source · #[non_exhaustive]pub struct BucketBundleBuilder { /* private fields */ }
Expand description
A builder for BucketBundle
.
Implementations§
source§impl BucketBundleBuilder
impl BucketBundleBuilder
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.
sourcepub fn get_bundle_id(&self) -> &Option<String>
pub fn get_bundle_id(&self) -> &Option<String>
The ID of the bundle.
sourcepub fn set_price(self, input: Option<f32>) -> Self
pub fn set_price(self, input: Option<f32>) -> Self
The monthly price of the bundle, in US dollars.
sourcepub fn storage_per_month_in_gb(self, input: i32) -> Self
pub fn storage_per_month_in_gb(self, input: i32) -> Self
The storage size of the bundle, in GB.
sourcepub fn set_storage_per_month_in_gb(self, input: Option<i32>) -> Self
pub fn set_storage_per_month_in_gb(self, input: Option<i32>) -> Self
The storage size of the bundle, in GB.
sourcepub fn get_storage_per_month_in_gb(&self) -> &Option<i32>
pub fn get_storage_per_month_in_gb(&self) -> &Option<i32>
The storage size of the bundle, in GB.
sourcepub fn transfer_per_month_in_gb(self, input: i32) -> Self
pub fn transfer_per_month_in_gb(self, input: i32) -> Self
The monthly network transfer quota of the bundle.
sourcepub fn set_transfer_per_month_in_gb(self, input: Option<i32>) -> Self
pub fn set_transfer_per_month_in_gb(self, input: Option<i32>) -> Self
The monthly network transfer quota of the bundle.
sourcepub fn get_transfer_per_month_in_gb(&self) -> &Option<i32>
pub fn get_transfer_per_month_in_gb(&self) -> &Option<i32>
The monthly network transfer quota of the bundle.
sourcepub fn is_active(self, input: bool) -> Self
pub fn is_active(self, input: bool) -> Self
Indicates whether the bundle is active. Use for a new or existing bucket.
sourcepub fn set_is_active(self, input: Option<bool>) -> Self
pub fn set_is_active(self, input: Option<bool>) -> Self
Indicates whether the bundle is active. Use for a new or existing bucket.
sourcepub fn get_is_active(&self) -> &Option<bool>
pub fn get_is_active(&self) -> &Option<bool>
Indicates whether the bundle is active. Use for a new or existing bucket.
sourcepub fn build(self) -> BucketBundle
pub fn build(self) -> BucketBundle
Consumes the builder and constructs a BucketBundle
.
Trait Implementations§
source§impl Clone for BucketBundleBuilder
impl Clone for BucketBundleBuilder
source§fn clone(&self) -> BucketBundleBuilder
fn clone(&self) -> BucketBundleBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BucketBundleBuilder
impl Debug for BucketBundleBuilder
source§impl Default for BucketBundleBuilder
impl Default for BucketBundleBuilder
source§fn default() -> BucketBundleBuilder
fn default() -> BucketBundleBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for BucketBundleBuilder
impl PartialEq for BucketBundleBuilder
source§fn eq(&self, other: &BucketBundleBuilder) -> bool
fn eq(&self, other: &BucketBundleBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BucketBundleBuilder
Auto Trait Implementations§
impl Freeze for BucketBundleBuilder
impl RefUnwindSafe for BucketBundleBuilder
impl Send for BucketBundleBuilder
impl Sync for BucketBundleBuilder
impl Unpin for BucketBundleBuilder
impl UnwindSafe for BucketBundleBuilder
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.