Struct aws_sdk_ec2::types::builders::PriceScheduleBuilder
source · #[non_exhaustive]pub struct PriceScheduleBuilder { /* private fields */ }
Expand description
A builder for PriceSchedule
.
Implementations§
source§impl PriceScheduleBuilder
impl PriceScheduleBuilder
sourcepub fn active(self, input: bool) -> Self
pub fn active(self, input: bool) -> Self
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
sourcepub fn set_active(self, input: Option<bool>) -> Self
pub fn set_active(self, input: Option<bool>) -> Self
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
sourcepub fn get_active(&self) -> &Option<bool>
pub fn get_active(&self) -> &Option<bool>
The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.
A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.
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) -> PriceSchedule
pub fn build(self) -> PriceSchedule
Consumes the builder and constructs a PriceSchedule
.
Trait Implementations§
source§impl Clone for PriceScheduleBuilder
impl Clone for PriceScheduleBuilder
source§fn clone(&self) -> PriceScheduleBuilder
fn clone(&self) -> PriceScheduleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PriceScheduleBuilder
impl Debug for PriceScheduleBuilder
source§impl Default for PriceScheduleBuilder
impl Default for PriceScheduleBuilder
source§fn default() -> PriceScheduleBuilder
fn default() -> PriceScheduleBuilder
source§impl PartialEq for PriceScheduleBuilder
impl PartialEq for PriceScheduleBuilder
source§fn eq(&self, other: &PriceScheduleBuilder) -> bool
fn eq(&self, other: &PriceScheduleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.