#[non_exhaustive]pub struct ReservedInstanceOffering {
pub reserved_instance_offering_id: Option<String>,
pub instance_type: Option<OpenSearchPartitionInstanceType>,
pub duration: i32,
pub fixed_price: Option<f64>,
pub usage_price: Option<f64>,
pub currency_code: Option<String>,
pub payment_option: Option<ReservedInstancePaymentOption>,
pub recurring_charges: Option<Vec<RecurringCharge>>,
}
Expand description
Details of an OpenSearch Reserved Instance offering.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.reserved_instance_offering_id: Option<String>
The unique identifier of the Reserved Instance offering.
instance_type: Option<OpenSearchPartitionInstanceType>
The OpenSearch instance type offered by the Reserved Instance offering.
duration: i32
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
fixed_price: Option<f64>
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
usage_price: Option<f64>
The hourly rate at which you're charged for the domain using this Reserved Instance.
currency_code: Option<String>
The currency code for the Reserved Instance offering.
payment_option: Option<ReservedInstancePaymentOption>
Payment option for the Reserved Instance offering
recurring_charges: Option<Vec<RecurringCharge>>
The recurring charge to your account, regardless of whether you creates any domains using the offering.
Implementations§
source§impl ReservedInstanceOffering
impl ReservedInstanceOffering
sourcepub fn reserved_instance_offering_id(&self) -> Option<&str>
pub fn reserved_instance_offering_id(&self) -> Option<&str>
The unique identifier of the Reserved Instance offering.
sourcepub fn instance_type(&self) -> Option<&OpenSearchPartitionInstanceType>
pub fn instance_type(&self) -> Option<&OpenSearchPartitionInstanceType>
The OpenSearch instance type offered by the Reserved Instance offering.
sourcepub fn duration(&self) -> i32
pub fn duration(&self) -> i32
The duration, in seconds, for which the offering will reserve the OpenSearch instance.
sourcepub fn fixed_price(&self) -> Option<f64>
pub fn fixed_price(&self) -> Option<f64>
The upfront fixed charge you will pay to purchase the specific Reserved Instance offering.
sourcepub fn usage_price(&self) -> Option<f64>
pub fn 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) -> Option<&str>
pub fn currency_code(&self) -> Option<&str>
The currency code for the Reserved Instance offering.
sourcepub fn payment_option(&self) -> Option<&ReservedInstancePaymentOption>
pub fn payment_option(&self) -> Option<&ReservedInstancePaymentOption>
Payment option for the Reserved Instance offering
sourcepub fn recurring_charges(&self) -> &[RecurringCharge]
pub fn recurring_charges(&self) -> &[RecurringCharge]
The recurring charge to your account, regardless of whether you creates any domains using the offering.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .recurring_charges.is_none()
.
source§impl ReservedInstanceOffering
impl ReservedInstanceOffering
sourcepub fn builder() -> ReservedInstanceOfferingBuilder
pub fn builder() -> ReservedInstanceOfferingBuilder
Creates a new builder-style object to manufacture ReservedInstanceOffering
.
Trait Implementations§
source§impl Clone for ReservedInstanceOffering
impl Clone for ReservedInstanceOffering
source§fn clone(&self) -> ReservedInstanceOffering
fn clone(&self) -> ReservedInstanceOffering
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReservedInstanceOffering
impl Debug for ReservedInstanceOffering
source§impl PartialEq for ReservedInstanceOffering
impl PartialEq for ReservedInstanceOffering
source§fn eq(&self, other: &ReservedInstanceOffering) -> bool
fn eq(&self, other: &ReservedInstanceOffering) -> bool
self
and other
values to be equal, and is used
by ==
.