Struct aws_sdk_ec2::model::InstanceStateChange
source · #[non_exhaustive]pub struct InstanceStateChange { /* private fields */ }
Expand description
Describes an instance state change.
Implementations§
source§impl InstanceStateChange
impl InstanceStateChange
sourcepub fn current_state(&self) -> Option<&InstanceState>
pub fn current_state(&self) -> Option<&InstanceState>
The current state of the instance.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn previous_state(&self) -> Option<&InstanceState>
pub fn previous_state(&self) -> Option<&InstanceState>
The previous state of the instance.
source§impl InstanceStateChange
impl InstanceStateChange
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceStateChange
.
Trait Implementations§
source§impl Clone for InstanceStateChange
impl Clone for InstanceStateChange
source§fn clone(&self) -> InstanceStateChange
fn clone(&self) -> InstanceStateChange
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 InstanceStateChange
impl Debug for InstanceStateChange
source§impl PartialEq<InstanceStateChange> for InstanceStateChange
impl PartialEq<InstanceStateChange> for InstanceStateChange
source§fn eq(&self, other: &InstanceStateChange) -> bool
fn eq(&self, other: &InstanceStateChange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.