#[non_exhaustive]pub struct ReservedInstanceOptions {
pub purchasing_option: PurchasingOption,
pub offering_class: OfferingClass,
pub term_length: TermLength,
}Expand description
Used to provide Reserved Instance preferences for the recommendation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.purchasing_option: PurchasingOptionThe payment plan to use for your Reserved Instance.
offering_class: OfferingClassThe flexibility to change the instance types needed for your Reserved Instance.
term_length: TermLengthThe preferred duration of the Reserved Instance term.
Implementations§
source§impl ReservedInstanceOptions
impl ReservedInstanceOptions
sourcepub fn purchasing_option(&self) -> &PurchasingOption
pub fn purchasing_option(&self) -> &PurchasingOption
The payment plan to use for your Reserved Instance.
sourcepub fn offering_class(&self) -> &OfferingClass
pub fn offering_class(&self) -> &OfferingClass
The flexibility to change the instance types needed for your Reserved Instance.
sourcepub fn term_length(&self) -> &TermLength
pub fn term_length(&self) -> &TermLength
The preferred duration of the Reserved Instance term.
source§impl ReservedInstanceOptions
impl ReservedInstanceOptions
sourcepub fn builder() -> ReservedInstanceOptionsBuilder
pub fn builder() -> ReservedInstanceOptionsBuilder
Creates a new builder-style object to manufacture ReservedInstanceOptions.
Trait Implementations§
source§impl Clone for ReservedInstanceOptions
impl Clone for ReservedInstanceOptions
source§fn clone(&self) -> ReservedInstanceOptions
fn clone(&self) -> ReservedInstanceOptions
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 Debug for ReservedInstanceOptions
impl Debug for ReservedInstanceOptions
source§impl PartialEq for ReservedInstanceOptions
impl PartialEq for ReservedInstanceOptions
source§fn eq(&self, other: &ReservedInstanceOptions) -> bool
fn eq(&self, other: &ReservedInstanceOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ReservedInstanceOptions
Auto Trait Implementations§
impl RefUnwindSafe for ReservedInstanceOptions
impl Send for ReservedInstanceOptions
impl Sync for ReservedInstanceOptions
impl Unpin for ReservedInstanceOptions
impl UnwindSafe for ReservedInstanceOptions
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
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>
Creates a shared type from an unshared type.