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