#[non_exhaustive]pub struct ReservedInstanceOfferingBuilder { /* private fields */ }
Expand description
A builder for ReservedInstanceOffering
.
Implementations§
source§impl ReservedInstanceOfferingBuilder
impl ReservedInstanceOfferingBuilder
sourcepub fn reserved_instance_offering_id(self, input: impl Into<String>) -> Self
pub fn reserved_instance_offering_id(self, input: impl Into<String>) -> Self
The unique identifier of the Reserved Instance offering.
sourcepub fn set_reserved_instance_offering_id(self, input: Option<String>) -> Self
pub fn set_reserved_instance_offering_id(self, input: Option<String>) -> Self
The unique identifier of the Reserved Instance offering.
sourcepub fn get_reserved_instance_offering_id(&self) -> &Option<String>
pub fn get_reserved_instance_offering_id(&self) -> &Option<String>
The unique identifier of the Reserved Instance offering.
sourcepub fn instance_type(self, input: OpenSearchPartitionInstanceType) -> Self
pub fn instance_type(self, input: OpenSearchPartitionInstanceType) -> Self
The OpenSearch instance type offered by the Reserved Instance offering.
sourcepub fn set_instance_type(
self,
input: Option<OpenSearchPartitionInstanceType>
) -> Self
pub fn set_instance_type( self, input: Option<OpenSearchPartitionInstanceType> ) -> Self
The OpenSearch instance type offered by the Reserved Instance offering.
sourcepub fn get_instance_type(&self) -> &Option<OpenSearchPartitionInstanceType>
pub fn get_instance_type(&self) -> &Option<OpenSearchPartitionInstanceType>
The OpenSearch instance type offered by the Reserved Instance offering.
sourcepub fn duration(self, input: i32) -> Self
pub fn duration(self, input: i32) -> Self
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
sourcepub fn set_duration(self, input: Option<i32>) -> Self
pub fn set_duration(self, input: Option<i32>) -> Self
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
sourcepub fn get_duration(&self) -> &Option<i32>
pub fn get_duration(&self) -> &Option<i32>
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
sourcepub fn fixed_price(self, input: f64) -> Self
pub fn fixed_price(self, input: f64) -> Self
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
sourcepub fn set_fixed_price(self, input: Option<f64>) -> Self
pub fn set_fixed_price(self, input: Option<f64>) -> Self
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
sourcepub fn get_fixed_price(&self) -> &Option<f64>
pub fn get_fixed_price(&self) -> &Option<f64>
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
sourcepub fn usage_price(self, input: f64) -> Self
pub fn usage_price(self, input: f64) -> Self
The hourly rate at which you're charged for the domain using this Reserved Instance.
sourcepub fn set_usage_price(self, input: Option<f64>) -> Self
pub fn set_usage_price(self, input: Option<f64>) -> Self
The hourly rate at which you're charged for the domain using this Reserved Instance.
sourcepub fn get_usage_price(&self) -> &Option<f64>
pub fn get_usage_price(&self) -> &Option<f64>
The hourly rate at which you're charged for the domain using this Reserved Instance.
sourcepub fn currency_code(self, input: impl Into<String>) -> Self
pub fn currency_code(self, input: impl Into<String>) -> Self
The currency code for the Reserved Instance offering.
sourcepub fn set_currency_code(self, input: Option<String>) -> Self
pub fn set_currency_code(self, input: Option<String>) -> Self
The currency code for the Reserved Instance offering.
sourcepub fn get_currency_code(&self) -> &Option<String>
pub fn get_currency_code(&self) -> &Option<String>
The currency code for the Reserved Instance offering.
sourcepub fn payment_option(self, input: ReservedInstancePaymentOption) -> Self
pub fn payment_option(self, input: ReservedInstancePaymentOption) -> Self
Payment option for the Reserved Instance offering
sourcepub fn set_payment_option(
self,
input: Option<ReservedInstancePaymentOption>
) -> Self
pub fn set_payment_option( self, input: Option<ReservedInstancePaymentOption> ) -> Self
Payment option for the Reserved Instance offering
sourcepub fn get_payment_option(&self) -> &Option<ReservedInstancePaymentOption>
pub fn get_payment_option(&self) -> &Option<ReservedInstancePaymentOption>
Payment option for the Reserved Instance offering
sourcepub fn recurring_charges(self, input: RecurringCharge) -> Self
pub fn recurring_charges(self, input: RecurringCharge) -> Self
Appends an item to recurring_charges
.
To override the contents of this collection use set_recurring_charges
.
The recurring charge to your account, regardless of whether you creates any domains using the offering.
sourcepub fn set_recurring_charges(self, input: Option<Vec<RecurringCharge>>) -> Self
pub fn set_recurring_charges(self, input: Option<Vec<RecurringCharge>>) -> Self
The recurring charge to your account, regardless of whether you creates any domains using the offering.
sourcepub fn get_recurring_charges(&self) -> &Option<Vec<RecurringCharge>>
pub fn get_recurring_charges(&self) -> &Option<Vec<RecurringCharge>>
The recurring charge to your account, regardless of whether you creates any domains using the offering.
sourcepub fn build(self) -> ReservedInstanceOffering
pub fn build(self) -> ReservedInstanceOffering
Consumes the builder and constructs a ReservedInstanceOffering
.
Trait Implementations§
source§impl Clone for ReservedInstanceOfferingBuilder
impl Clone for ReservedInstanceOfferingBuilder
source§fn clone(&self) -> ReservedInstanceOfferingBuilder
fn clone(&self) -> ReservedInstanceOfferingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ReservedInstanceOfferingBuilder
impl Default for ReservedInstanceOfferingBuilder
source§fn default() -> ReservedInstanceOfferingBuilder
fn default() -> ReservedInstanceOfferingBuilder
source§impl PartialEq for ReservedInstanceOfferingBuilder
impl PartialEq for ReservedInstanceOfferingBuilder
source§fn eq(&self, other: &ReservedInstanceOfferingBuilder) -> bool
fn eq(&self, other: &ReservedInstanceOfferingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.