Struct aws_sdk_ec2::types::CapacityBlockOffering
source · #[non_exhaustive]pub struct CapacityBlockOffering {
pub capacity_block_offering_id: Option<String>,
pub instance_type: Option<String>,
pub availability_zone: Option<String>,
pub instance_count: Option<i32>,
pub start_date: Option<DateTime>,
pub end_date: Option<DateTime>,
pub capacity_block_duration_hours: Option<i32>,
pub upfront_fee: Option<String>,
pub currency_code: Option<String>,
pub tenancy: Option<CapacityReservationTenancy>,
}
Expand description
The recommended Capacity Block that fits your search requirements.
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.capacity_block_offering_id: Option<String>
The ID of the Capacity Block offering.
instance_type: Option<String>
The instance type of the Capacity Block offering.
availability_zone: Option<String>
The Availability Zone of the Capacity Block offering.
instance_count: Option<i32>
The number of instances in the Capacity Block offering.
start_date: Option<DateTime>
The start date of the Capacity Block offering.
end_date: Option<DateTime>
The end date of the Capacity Block offering.
capacity_block_duration_hours: Option<i32>
The amount of time of the Capacity Block reservation in hours.
upfront_fee: Option<String>
The total price to be paid up front.
currency_code: Option<String>
The currency of the payment for the Capacity Block.
tenancy: Option<CapacityReservationTenancy>
The tenancy of the Capacity Block.
Implementations§
source§impl CapacityBlockOffering
impl CapacityBlockOffering
sourcepub fn capacity_block_offering_id(&self) -> Option<&str>
pub fn capacity_block_offering_id(&self) -> Option<&str>
The ID of the Capacity Block offering.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type of the Capacity Block offering.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone of the Capacity Block offering.
sourcepub fn instance_count(&self) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
The number of instances in the Capacity Block offering.
sourcepub fn start_date(&self) -> Option<&DateTime>
pub fn start_date(&self) -> Option<&DateTime>
The start date of the Capacity Block offering.
sourcepub fn capacity_block_duration_hours(&self) -> Option<i32>
pub fn capacity_block_duration_hours(&self) -> Option<i32>
The amount of time of the Capacity Block reservation in hours.
sourcepub fn upfront_fee(&self) -> Option<&str>
pub fn upfront_fee(&self) -> Option<&str>
The total price to be paid up front.
sourcepub fn currency_code(&self) -> Option<&str>
pub fn currency_code(&self) -> Option<&str>
The currency of the payment for the Capacity Block.
sourcepub fn tenancy(&self) -> Option<&CapacityReservationTenancy>
pub fn tenancy(&self) -> Option<&CapacityReservationTenancy>
The tenancy of the Capacity Block.
source§impl CapacityBlockOffering
impl CapacityBlockOffering
sourcepub fn builder() -> CapacityBlockOfferingBuilder
pub fn builder() -> CapacityBlockOfferingBuilder
Creates a new builder-style object to manufacture CapacityBlockOffering
.
Trait Implementations§
source§impl Clone for CapacityBlockOffering
impl Clone for CapacityBlockOffering
source§fn clone(&self) -> CapacityBlockOffering
fn clone(&self) -> CapacityBlockOffering
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CapacityBlockOffering
impl Debug for CapacityBlockOffering
source§impl PartialEq for CapacityBlockOffering
impl PartialEq for CapacityBlockOffering
source§fn eq(&self, other: &CapacityBlockOffering) -> bool
fn eq(&self, other: &CapacityBlockOffering) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CapacityBlockOffering
Auto Trait Implementations§
impl Freeze for CapacityBlockOffering
impl RefUnwindSafe for CapacityBlockOffering
impl Send for CapacityBlockOffering
impl Sync for CapacityBlockOffering
impl Unpin for CapacityBlockOffering
impl UnwindSafe for CapacityBlockOffering
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> 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