Struct aws_sdk_lightsail::types::BucketBundle
source · #[non_exhaustive]pub struct BucketBundle {
pub bundle_id: Option<String>,
pub name: Option<String>,
pub price: Option<f32>,
pub storage_per_month_in_gb: Option<i32>,
pub transfer_per_month_in_gb: Option<i32>,
pub is_active: Option<bool>,
}
Expand description
Describes the specifications of a bundle that can be applied to an Amazon Lightsail bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bundle_id: Option<String>
The ID of the bundle.
name: Option<String>
The name of the bundle.
price: Option<f32>
The monthly price of the bundle, in US dollars.
storage_per_month_in_gb: Option<i32>
The storage size of the bundle, in GB.
transfer_per_month_in_gb: Option<i32>
The monthly network transfer quota of the bundle.
is_active: Option<bool>
Indicates whether the bundle is active. Use for a new or existing bucket.
Implementations§
source§impl BucketBundle
impl BucketBundle
sourcepub fn storage_per_month_in_gb(&self) -> Option<i32>
pub fn storage_per_month_in_gb(&self) -> Option<i32>
The storage size of the bundle, in GB.
sourcepub fn transfer_per_month_in_gb(&self) -> Option<i32>
pub fn transfer_per_month_in_gb(&self) -> Option<i32>
The monthly network transfer quota of the bundle.
source§impl BucketBundle
impl BucketBundle
sourcepub fn builder() -> BucketBundleBuilder
pub fn builder() -> BucketBundleBuilder
Creates a new builder-style object to manufacture BucketBundle
.
Trait Implementations§
source§impl Clone for BucketBundle
impl Clone for BucketBundle
source§fn clone(&self) -> BucketBundle
fn clone(&self) -> BucketBundle
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 BucketBundle
impl Debug for BucketBundle
source§impl PartialEq for BucketBundle
impl PartialEq for BucketBundle
source§fn eq(&self, other: &BucketBundle) -> bool
fn eq(&self, other: &BucketBundle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BucketBundle
Auto Trait Implementations§
impl Freeze for BucketBundle
impl RefUnwindSafe for BucketBundle
impl Send for BucketBundle
impl Sync for BucketBundle
impl Unpin for BucketBundle
impl UnwindSafe for BucketBundle
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.