Struct aws_sdk_ec2::model::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 (EC2-Classic
or EC2-VPC
).
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
sourceimpl 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.
sourceimpl ScheduledInstance
impl ScheduledInstance
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ScheduledInstance
.
Trait Implementations
sourceimpl Clone for ScheduledInstance
impl Clone for ScheduledInstance
sourcefn clone(&self) -> ScheduledInstance
fn clone(&self) -> ScheduledInstance
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScheduledInstance
impl Debug for ScheduledInstance
sourceimpl PartialEq<ScheduledInstance> for ScheduledInstance
impl PartialEq<ScheduledInstance> for ScheduledInstance
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ScheduledInstance) -> bool
fn ne(&self, other: &ScheduledInstance) -> bool
This method tests for !=
.
impl StructuralPartialEq for ScheduledInstance
Auto Trait Implementations
impl RefUnwindSafe for ScheduledInstance
impl Send for ScheduledInstance
impl Sync for ScheduledInstance
impl Unpin for ScheduledInstance
impl UnwindSafe for ScheduledInstance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more