Struct aws_sdk_ec2::types::ScheduledInstance
source · #[non_exhaustive]pub struct ScheduledInstance {Show 15 fields
pub availability_zone: Option<String>,
pub create_date: Option<DateTime>,
pub hourly_price: Option<String>,
pub instance_count: Option<i32>,
pub instance_type: Option<String>,
pub network_platform: Option<String>,
pub next_slot_start_time: Option<DateTime>,
pub platform: Option<String>,
pub previous_slot_end_time: Option<DateTime>,
pub recurrence: Option<ScheduledInstanceRecurrence>,
pub scheduled_instance_id: Option<String>,
pub slot_duration_in_hours: Option<i32>,
pub term_end_date: Option<DateTime>,
pub term_start_date: Option<DateTime>,
pub total_scheduled_instance_hours: Option<i32>,
}
Expand description
Describes a Scheduled Instance.
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.availability_zone: Option<String>
The Availability Zone.
create_date: Option<DateTime>
The date when the Scheduled Instance was purchased.
hourly_price: Option<String>
The hourly price for a single instance.
instance_count: Option<i32>
The number of instances.
instance_type: Option<String>
The instance type.
network_platform: Option<String>
The network platform.
next_slot_start_time: Option<DateTime>
The time for the next schedule to start.
platform: Option<String>
The platform (Linux/UNIX
or Windows
).
previous_slot_end_time: Option<DateTime>
The time that the previous schedule ended or will end.
recurrence: Option<ScheduledInstanceRecurrence>
The schedule recurrence.
scheduled_instance_id: Option<String>
The Scheduled Instance ID.
slot_duration_in_hours: Option<i32>
The number of hours in the schedule.
term_end_date: Option<DateTime>
The end date for the Scheduled Instance.
term_start_date: Option<DateTime>
The start date for the Scheduled Instance.
total_scheduled_instance_hours: Option<i32>
The total number of hours for a single instance for the entire term.
Implementations§
source§impl ScheduledInstance
impl ScheduledInstance
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone.
sourcepub fn create_date(&self) -> Option<&DateTime>
pub fn create_date(&self) -> Option<&DateTime>
The date when the Scheduled Instance was purchased.
sourcepub fn hourly_price(&self) -> Option<&str>
pub fn hourly_price(&self) -> Option<&str>
The hourly price for a single instance.
sourcepub fn instance_count(&self) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
The number of instances.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type.
sourcepub fn network_platform(&self) -> Option<&str>
pub fn network_platform(&self) -> Option<&str>
The network platform.
sourcepub fn next_slot_start_time(&self) -> Option<&DateTime>
pub fn next_slot_start_time(&self) -> Option<&DateTime>
The time for the next schedule to start.
sourcepub fn previous_slot_end_time(&self) -> Option<&DateTime>
pub fn previous_slot_end_time(&self) -> Option<&DateTime>
The time that the previous schedule ended or will end.
sourcepub fn recurrence(&self) -> Option<&ScheduledInstanceRecurrence>
pub fn recurrence(&self) -> Option<&ScheduledInstanceRecurrence>
The schedule recurrence.
sourcepub fn scheduled_instance_id(&self) -> Option<&str>
pub fn scheduled_instance_id(&self) -> Option<&str>
The Scheduled Instance ID.
sourcepub fn slot_duration_in_hours(&self) -> Option<i32>
pub fn slot_duration_in_hours(&self) -> Option<i32>
The number of hours in the schedule.
sourcepub fn term_end_date(&self) -> Option<&DateTime>
pub fn term_end_date(&self) -> Option<&DateTime>
The end date for the Scheduled Instance.
sourcepub fn term_start_date(&self) -> Option<&DateTime>
pub fn term_start_date(&self) -> Option<&DateTime>
The start date for the Scheduled Instance.
sourcepub fn total_scheduled_instance_hours(&self) -> Option<i32>
pub fn total_scheduled_instance_hours(&self) -> Option<i32>
The total number of hours for a single instance for the entire term.
source§impl ScheduledInstance
impl ScheduledInstance
sourcepub fn builder() -> ScheduledInstanceBuilder
pub fn builder() -> ScheduledInstanceBuilder
Creates a new builder-style object to manufacture ScheduledInstance
.
Trait Implementations§
source§impl Clone for ScheduledInstance
impl Clone for ScheduledInstance
source§fn clone(&self) -> ScheduledInstance
fn clone(&self) -> ScheduledInstance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScheduledInstance
impl Debug for ScheduledInstance
source§impl PartialEq<ScheduledInstance> for ScheduledInstance
impl PartialEq<ScheduledInstance> for ScheduledInstance
source§fn eq(&self, other: &ScheduledInstance) -> bool
fn eq(&self, other: &ScheduledInstance) -> bool
self
and other
values to be equal, and is used
by ==
.