#[non_exhaustive]pub struct PriceScheduleSpecificationBuilder { /* private fields */ }
Expand description
A builder for PriceScheduleSpecification
.
Implementations§
source§impl PriceScheduleSpecificationBuilder
impl PriceScheduleSpecificationBuilder
sourcepub fn currency_code(self, input: CurrencyCodeValues) -> Self
pub fn currency_code(self, input: CurrencyCodeValues) -> Self
The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD
.
sourcepub fn set_currency_code(self, input: Option<CurrencyCodeValues>) -> Self
pub fn set_currency_code(self, input: Option<CurrencyCodeValues>) -> Self
The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD
.
sourcepub fn get_currency_code(&self) -> &Option<CurrencyCodeValues>
pub fn get_currency_code(&self) -> &Option<CurrencyCodeValues>
The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD
.
sourcepub fn term(self, input: i64) -> Self
pub fn term(self, input: i64) -> Self
The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
sourcepub fn set_term(self, input: Option<i64>) -> Self
pub fn set_term(self, input: Option<i64>) -> Self
The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
sourcepub fn get_term(&self) -> &Option<i64>
pub fn get_term(&self) -> &Option<i64>
The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
sourcepub fn build(self) -> PriceScheduleSpecification
pub fn build(self) -> PriceScheduleSpecification
Consumes the builder and constructs a PriceScheduleSpecification
.
Trait Implementations§
source§impl Clone for PriceScheduleSpecificationBuilder
impl Clone for PriceScheduleSpecificationBuilder
source§fn clone(&self) -> PriceScheduleSpecificationBuilder
fn clone(&self) -> PriceScheduleSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PriceScheduleSpecificationBuilder
impl Default for PriceScheduleSpecificationBuilder
source§fn default() -> PriceScheduleSpecificationBuilder
fn default() -> PriceScheduleSpecificationBuilder
source§impl PartialEq for PriceScheduleSpecificationBuilder
impl PartialEq for PriceScheduleSpecificationBuilder
source§fn eq(&self, other: &PriceScheduleSpecificationBuilder) -> bool
fn eq(&self, other: &PriceScheduleSpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PriceScheduleSpecificationBuilder
Auto Trait Implementations§
impl Freeze for PriceScheduleSpecificationBuilder
impl RefUnwindSafe for PriceScheduleSpecificationBuilder
impl Send for PriceScheduleSpecificationBuilder
impl Sync for PriceScheduleSpecificationBuilder
impl Unpin for PriceScheduleSpecificationBuilder
impl UnwindSafe for PriceScheduleSpecificationBuilder
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