Struct aws_sdk_ec2::types::InstanceStatusEvent
source · #[non_exhaustive]pub struct InstanceStatusEvent {
pub instance_event_id: Option<String>,
pub code: Option<EventCode>,
pub description: Option<String>,
pub not_after: Option<DateTime>,
pub not_before: Option<DateTime>,
pub not_before_deadline: Option<DateTime>,
}
Expand description
Describes a scheduled event for an 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.instance_event_id: Option<String>
The ID of the event.
code: Option<EventCode>
The event code.
description: Option<String>
A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
not_after: Option<DateTime>
The latest scheduled end time for the event.
not_before: Option<DateTime>
The earliest scheduled start time for the event.
not_before_deadline: Option<DateTime>
The deadline for starting the event.
Implementations§
source§impl InstanceStatusEvent
impl InstanceStatusEvent
sourcepub fn instance_event_id(&self) -> Option<&str>
pub fn instance_event_id(&self) -> Option<&str>
The ID of the event.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
sourcepub fn not_before(&self) -> Option<&DateTime>
pub fn not_before(&self) -> Option<&DateTime>
The earliest scheduled start time for the event.
sourcepub fn not_before_deadline(&self) -> Option<&DateTime>
pub fn not_before_deadline(&self) -> Option<&DateTime>
The deadline for starting the event.
source§impl InstanceStatusEvent
impl InstanceStatusEvent
sourcepub fn builder() -> InstanceStatusEventBuilder
pub fn builder() -> InstanceStatusEventBuilder
Creates a new builder-style object to manufacture InstanceStatusEvent
.
Trait Implementations§
source§impl Clone for InstanceStatusEvent
impl Clone for InstanceStatusEvent
source§fn clone(&self) -> InstanceStatusEvent
fn clone(&self) -> InstanceStatusEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceStatusEvent
impl Debug for InstanceStatusEvent
source§impl PartialEq for InstanceStatusEvent
impl PartialEq for InstanceStatusEvent
source§fn eq(&self, other: &InstanceStatusEvent) -> bool
fn eq(&self, other: &InstanceStatusEvent) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceStatusEvent
Auto Trait Implementations§
impl Freeze for InstanceStatusEvent
impl RefUnwindSafe for InstanceStatusEvent
impl Send for InstanceStatusEvent
impl Sync for InstanceStatusEvent
impl Unpin for InstanceStatusEvent
impl UnwindSafe for InstanceStatusEvent
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