Struct aws_sdk_iotevents::types::builders::StateBuilder
source · #[non_exhaustive]pub struct StateBuilder { /* private fields */ }
Expand description
A builder for State
.
Implementations§
source§impl StateBuilder
impl StateBuilder
sourcepub fn state_name(self, input: impl Into<String>) -> Self
pub fn state_name(self, input: impl Into<String>) -> Self
The name of the state.
This field is required.sourcepub fn set_state_name(self, input: Option<String>) -> Self
pub fn set_state_name(self, input: Option<String>) -> Self
The name of the state.
sourcepub fn get_state_name(&self) -> &Option<String>
pub fn get_state_name(&self) -> &Option<String>
The name of the state.
sourcepub fn on_input(self, input: OnInputLifecycle) -> Self
pub fn on_input(self, input: OnInputLifecycle) -> Self
When an input is received and the condition
is TRUE, perform the specified actions
.
sourcepub fn set_on_input(self, input: Option<OnInputLifecycle>) -> Self
pub fn set_on_input(self, input: Option<OnInputLifecycle>) -> Self
When an input is received and the condition
is TRUE, perform the specified actions
.
sourcepub fn get_on_input(&self) -> &Option<OnInputLifecycle>
pub fn get_on_input(&self) -> &Option<OnInputLifecycle>
When an input is received and the condition
is TRUE, perform the specified actions
.
sourcepub fn on_enter(self, input: OnEnterLifecycle) -> Self
pub fn on_enter(self, input: OnEnterLifecycle) -> Self
When entering this state, perform these actions
if the condition
is TRUE.
sourcepub fn set_on_enter(self, input: Option<OnEnterLifecycle>) -> Self
pub fn set_on_enter(self, input: Option<OnEnterLifecycle>) -> Self
When entering this state, perform these actions
if the condition
is TRUE.
sourcepub fn get_on_enter(&self) -> &Option<OnEnterLifecycle>
pub fn get_on_enter(&self) -> &Option<OnEnterLifecycle>
When entering this state, perform these actions
if the condition
is TRUE.
sourcepub fn on_exit(self, input: OnExitLifecycle) -> Self
pub fn on_exit(self, input: OnExitLifecycle) -> Self
When exiting this state, perform these actions
if the specified condition
is TRUE
.
sourcepub fn set_on_exit(self, input: Option<OnExitLifecycle>) -> Self
pub fn set_on_exit(self, input: Option<OnExitLifecycle>) -> Self
When exiting this state, perform these actions
if the specified condition
is TRUE
.
sourcepub fn get_on_exit(&self) -> &Option<OnExitLifecycle>
pub fn get_on_exit(&self) -> &Option<OnExitLifecycle>
When exiting this state, perform these actions
if the specified condition
is TRUE
.
Trait Implementations§
source§impl Clone for StateBuilder
impl Clone for StateBuilder
source§fn clone(&self) -> StateBuilder
fn clone(&self) -> StateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StateBuilder
impl Debug for StateBuilder
source§impl Default for StateBuilder
impl Default for StateBuilder
source§fn default() -> StateBuilder
fn default() -> StateBuilder
source§impl PartialEq for StateBuilder
impl PartialEq for StateBuilder
source§fn eq(&self, other: &StateBuilder) -> bool
fn eq(&self, other: &StateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StateBuilder
Auto Trait Implementations§
impl Freeze for StateBuilder
impl RefUnwindSafe for StateBuilder
impl Send for StateBuilder
impl Sync for StateBuilder
impl Unpin for StateBuilder
impl UnwindSafe for StateBuilder
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