Struct aws_sdk_lightsail::types::builders::CostEstimateBuilder
source · #[non_exhaustive]pub struct CostEstimateBuilder { /* private fields */ }
Expand description
A builder for CostEstimate
.
Implementations§
source§impl CostEstimateBuilder
impl CostEstimateBuilder
sourcepub fn usage_type(self, input: impl Into<String>) -> Self
pub fn usage_type(self, input: impl Into<String>) -> Self
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
sourcepub fn set_usage_type(self, input: Option<String>) -> Self
pub fn set_usage_type(self, input: Option<String>) -> Self
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
sourcepub fn get_usage_type(&self) -> &Option<String>
pub fn get_usage_type(&self) -> &Option<String>
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
sourcepub fn results_by_time(self, input: EstimateByTime) -> Self
pub fn results_by_time(self, input: EstimateByTime) -> Self
Appends an item to results_by_time
.
To override the contents of this collection use set_results_by_time
.
The cost estimate result that's associated with a time period.
sourcepub fn set_results_by_time(self, input: Option<Vec<EstimateByTime>>) -> Self
pub fn set_results_by_time(self, input: Option<Vec<EstimateByTime>>) -> Self
The cost estimate result that's associated with a time period.
sourcepub fn get_results_by_time(&self) -> &Option<Vec<EstimateByTime>>
pub fn get_results_by_time(&self) -> &Option<Vec<EstimateByTime>>
The cost estimate result that's associated with a time period.
sourcepub fn build(self) -> CostEstimate
pub fn build(self) -> CostEstimate
Consumes the builder and constructs a CostEstimate
.
Trait Implementations§
source§impl Clone for CostEstimateBuilder
impl Clone for CostEstimateBuilder
source§fn clone(&self) -> CostEstimateBuilder
fn clone(&self) -> CostEstimateBuilder
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 CostEstimateBuilder
impl Debug for CostEstimateBuilder
source§impl Default for CostEstimateBuilder
impl Default for CostEstimateBuilder
source§fn default() -> CostEstimateBuilder
fn default() -> CostEstimateBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CostEstimateBuilder
impl PartialEq for CostEstimateBuilder
source§fn eq(&self, other: &CostEstimateBuilder) -> bool
fn eq(&self, other: &CostEstimateBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CostEstimateBuilder
Auto Trait Implementations§
impl Freeze for CostEstimateBuilder
impl RefUnwindSafe for CostEstimateBuilder
impl Send for CostEstimateBuilder
impl Sync for CostEstimateBuilder
impl Unpin for CostEstimateBuilder
impl UnwindSafe for CostEstimateBuilder
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.