#[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 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 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
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 Default for PriceScheduleSpecificationBuilder
impl Default for PriceScheduleSpecificationBuilder
source§fn default() -> PriceScheduleSpecificationBuilder
fn default() -> PriceScheduleSpecificationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<PriceScheduleSpecificationBuilder> for PriceScheduleSpecificationBuilder
impl PartialEq<PriceScheduleSpecificationBuilder> for PriceScheduleSpecificationBuilder
source§fn eq(&self, other: &PriceScheduleSpecificationBuilder) -> bool
fn eq(&self, other: &PriceScheduleSpecificationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PriceScheduleSpecificationBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more