Struct aws_sdk_ec2::types::HostOffering
source · #[non_exhaustive]pub struct HostOffering {
pub currency_code: Option<CurrencyCodeValues>,
pub duration: Option<i32>,
pub hourly_price: Option<String>,
pub instance_family: Option<String>,
pub offering_id: Option<String>,
pub payment_option: Option<PaymentOption>,
pub upfront_price: Option<String>,
}
Expand description
Details about the Dedicated Host Reservation offering.
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.currency_code: Option<CurrencyCodeValues>
The currency of the offering.
duration: Option<i32>
The duration of the offering (in seconds).
hourly_price: Option<String>
The hourly price of the offering.
instance_family: Option<String>
The instance family of the offering.
offering_id: Option<String>
The ID of the offering.
payment_option: Option<PaymentOption>
The available payment option.
upfront_price: Option<String>
The upfront price of the offering. Does not apply to No Upfront offerings.
Implementations§
source§impl HostOffering
impl HostOffering
sourcepub fn currency_code(&self) -> Option<&CurrencyCodeValues>
pub fn currency_code(&self) -> Option<&CurrencyCodeValues>
The currency of the offering.
sourcepub fn hourly_price(&self) -> Option<&str>
pub fn hourly_price(&self) -> Option<&str>
The hourly price of the offering.
sourcepub fn instance_family(&self) -> Option<&str>
pub fn instance_family(&self) -> Option<&str>
The instance family of the offering.
sourcepub fn offering_id(&self) -> Option<&str>
pub fn offering_id(&self) -> Option<&str>
The ID of the offering.
sourcepub fn payment_option(&self) -> Option<&PaymentOption>
pub fn payment_option(&self) -> Option<&PaymentOption>
The available payment option.
sourcepub fn upfront_price(&self) -> Option<&str>
pub fn upfront_price(&self) -> Option<&str>
The upfront price of the offering. Does not apply to No Upfront offerings.
source§impl HostOffering
impl HostOffering
sourcepub fn builder() -> HostOfferingBuilder
pub fn builder() -> HostOfferingBuilder
Creates a new builder-style object to manufacture HostOffering
.
Trait Implementations§
source§impl Clone for HostOffering
impl Clone for HostOffering
source§fn clone(&self) -> HostOffering
fn clone(&self) -> HostOffering
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 HostOffering
impl Debug for HostOffering
source§impl PartialEq for HostOffering
impl PartialEq for HostOffering
source§fn eq(&self, other: &HostOffering) -> bool
fn eq(&self, other: &HostOffering) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HostOffering
Auto Trait Implementations§
impl Freeze for HostOffering
impl RefUnwindSafe for HostOffering
impl Send for HostOffering
impl Sync for HostOffering
impl Unpin for HostOffering
impl UnwindSafe for HostOffering
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.