Struct aws_sdk_budgets::types::builders::CalculatedSpendBuilder
source · #[non_exhaustive]pub struct CalculatedSpendBuilder { /* private fields */ }
Expand description
A builder for CalculatedSpend
.
Implementations§
source§impl CalculatedSpendBuilder
impl CalculatedSpendBuilder
sourcepub fn actual_spend(self, input: Spend) -> Self
pub fn actual_spend(self, input: Spend) -> Self
The amount of cost, usage, RI units, or Savings Plans units that you used.
This field is required.sourcepub fn set_actual_spend(self, input: Option<Spend>) -> Self
pub fn set_actual_spend(self, input: Option<Spend>) -> Self
The amount of cost, usage, RI units, or Savings Plans units that you used.
sourcepub fn get_actual_spend(&self) -> &Option<Spend>
pub fn get_actual_spend(&self) -> &Option<Spend>
The amount of cost, usage, RI units, or Savings Plans units that you used.
sourcepub fn forecasted_spend(self, input: Spend) -> Self
pub fn forecasted_spend(self, input: Spend) -> Self
The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.
sourcepub fn set_forecasted_spend(self, input: Option<Spend>) -> Self
pub fn set_forecasted_spend(self, input: Option<Spend>) -> Self
The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.
sourcepub fn get_forecasted_spend(&self) -> &Option<Spend>
pub fn get_forecasted_spend(&self) -> &Option<Spend>
The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.
sourcepub fn build(self) -> CalculatedSpend
pub fn build(self) -> CalculatedSpend
Consumes the builder and constructs a CalculatedSpend
.
Trait Implementations§
source§impl Clone for CalculatedSpendBuilder
impl Clone for CalculatedSpendBuilder
source§fn clone(&self) -> CalculatedSpendBuilder
fn clone(&self) -> CalculatedSpendBuilder
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 CalculatedSpendBuilder
impl Debug for CalculatedSpendBuilder
source§impl Default for CalculatedSpendBuilder
impl Default for CalculatedSpendBuilder
source§fn default() -> CalculatedSpendBuilder
fn default() -> CalculatedSpendBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CalculatedSpendBuilder
impl PartialEq for CalculatedSpendBuilder
source§fn eq(&self, other: &CalculatedSpendBuilder) -> bool
fn eq(&self, other: &CalculatedSpendBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CalculatedSpendBuilder
Auto Trait Implementations§
impl Freeze for CalculatedSpendBuilder
impl RefUnwindSafe for CalculatedSpendBuilder
impl Send for CalculatedSpendBuilder
impl Sync for CalculatedSpendBuilder
impl Unpin for CalculatedSpendBuilder
impl UnwindSafe for CalculatedSpendBuilder
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.