Struct aws_sdk_ec2::model::ScheduledInstance
source · #[non_exhaustive]pub struct ScheduledInstance { /* private fields */ }
Expand description
Describes a Scheduled Instance.
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 (EC2-Classic
or EC2-VPC
).
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() -> Builder
pub fn builder() -> Builder
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
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 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
This method tests for
self
and other
values to be equal, and is used
by ==
.