#[non_exhaustive]pub struct ReservedInstanceOptionsBuilder { /* private fields */ }Expand description
A builder for ReservedInstanceOptions.
Implementations§
source§impl ReservedInstanceOptionsBuilder
impl ReservedInstanceOptionsBuilder
sourcepub fn purchasing_option(self, input: PurchasingOption) -> Self
pub fn purchasing_option(self, input: PurchasingOption) -> Self
The payment plan to use for your Reserved Instance.
This field is required.sourcepub fn set_purchasing_option(self, input: Option<PurchasingOption>) -> Self
pub fn set_purchasing_option(self, input: Option<PurchasingOption>) -> Self
The payment plan to use for your Reserved Instance.
sourcepub fn get_purchasing_option(&self) -> &Option<PurchasingOption>
pub fn get_purchasing_option(&self) -> &Option<PurchasingOption>
The payment plan to use for your Reserved Instance.
sourcepub fn offering_class(self, input: OfferingClass) -> Self
pub fn offering_class(self, input: OfferingClass) -> Self
The flexibility to change the instance types needed for your Reserved Instance.
This field is required.sourcepub fn set_offering_class(self, input: Option<OfferingClass>) -> Self
pub fn set_offering_class(self, input: Option<OfferingClass>) -> Self
The flexibility to change the instance types needed for your Reserved Instance.
sourcepub fn get_offering_class(&self) -> &Option<OfferingClass>
pub fn get_offering_class(&self) -> &Option<OfferingClass>
The flexibility to change the instance types needed for your Reserved Instance.
sourcepub fn term_length(self, input: TermLength) -> Self
pub fn term_length(self, input: TermLength) -> Self
The preferred duration of the Reserved Instance term.
This field is required.sourcepub fn set_term_length(self, input: Option<TermLength>) -> Self
pub fn set_term_length(self, input: Option<TermLength>) -> Self
The preferred duration of the Reserved Instance term.
sourcepub fn get_term_length(&self) -> &Option<TermLength>
pub fn get_term_length(&self) -> &Option<TermLength>
The preferred duration of the Reserved Instance term.
sourcepub fn build(self) -> Result<ReservedInstanceOptions, BuildError>
pub fn build(self) -> Result<ReservedInstanceOptions, BuildError>
Consumes the builder and constructs a ReservedInstanceOptions.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ReservedInstanceOptionsBuilder
impl Clone for ReservedInstanceOptionsBuilder
source§fn clone(&self) -> ReservedInstanceOptionsBuilder
fn clone(&self) -> ReservedInstanceOptionsBuilder
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 ReservedInstanceOptionsBuilder
impl Default for ReservedInstanceOptionsBuilder
source§fn default() -> ReservedInstanceOptionsBuilder
fn default() -> ReservedInstanceOptionsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ReservedInstanceOptionsBuilder
impl PartialEq for ReservedInstanceOptionsBuilder
source§fn eq(&self, other: &ReservedInstanceOptionsBuilder) -> bool
fn eq(&self, other: &ReservedInstanceOptionsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ReservedInstanceOptionsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ReservedInstanceOptionsBuilder
impl Send for ReservedInstanceOptionsBuilder
impl Sync for ReservedInstanceOptionsBuilder
impl Unpin for ReservedInstanceOptionsBuilder
impl UnwindSafe for ReservedInstanceOptionsBuilder
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.