#[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<PriceScheduleSpecificationBuilder> for PriceScheduleSpecificationBuilder
impl PartialEq<PriceScheduleSpecificationBuilder> 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 ==
.