Struct aws_sdk_ec2::model::PriceSchedule
source · #[non_exhaustive]pub struct PriceSchedule { /* private fields */ }
Expand description
Describes the price for a Reserved Instance.
Implementations§
source§impl PriceSchedule
impl PriceSchedule
sourcepub fn active(&self) -> Option<bool>
pub fn 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) -> Option<&CurrencyCodeValues>
pub fn currency_code(&self) -> Option<&CurrencyCodeValues>
The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD
.
source§impl PriceSchedule
impl PriceSchedule
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PriceSchedule
.
Trait Implementations§
source§impl Clone for PriceSchedule
impl Clone for PriceSchedule
source§fn clone(&self) -> PriceSchedule
fn clone(&self) -> PriceSchedule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PriceSchedule
impl Debug for PriceSchedule
source§impl PartialEq<PriceSchedule> for PriceSchedule
impl PartialEq<PriceSchedule> for PriceSchedule
source§fn eq(&self, other: &PriceSchedule) -> bool
fn eq(&self, other: &PriceSchedule) -> bool
self
and other
values to be equal, and is used
by ==
.