Struct aws_sdk_ec2::types::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() -> InstanceStateChangeBuilder
pub fn builder() -> InstanceStateChangeBuilder
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 ==
.impl StructuralPartialEq for InstanceStateChange
Auto Trait Implementations§
impl RefUnwindSafe for InstanceStateChange
impl Send for InstanceStateChange
impl Sync for InstanceStateChange
impl Unpin for InstanceStateChange
impl UnwindSafe for InstanceStateChange
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
Mutably borrows from an owned value. Read more