#[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 ==
.impl StructuralPartialEq for ReservedInstanceOffering
Auto Trait Implementations§
impl Freeze for ReservedInstanceOffering
impl RefUnwindSafe for ReservedInstanceOffering
impl Send for ReservedInstanceOffering
impl Sync for ReservedInstanceOffering
impl Unpin for ReservedInstanceOffering
impl UnwindSafe for ReservedInstanceOffering
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more