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 ==
.