#[non_exhaustive]pub struct ConditionalBranchBuilder { /* private fields */ }Expand description
A builder for ConditionalBranch.
Implementations§
source§impl ConditionalBranchBuilder
impl ConditionalBranchBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the branch.
This field is required.sourcepub fn condition(self, input: Condition) -> Self
pub fn condition(self, input: Condition) -> Self
Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
This field is required.sourcepub fn set_condition(self, input: Option<Condition>) -> Self
pub fn set_condition(self, input: Option<Condition>) -> Self
Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
sourcepub fn get_condition(&self) -> &Option<Condition>
pub fn get_condition(&self) -> &Option<Condition>
Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
sourcepub fn next_step(self, input: DialogState) -> Self
pub fn next_step(self, input: DialogState) -> Self
The next step in the conversation.
This field is required.sourcepub fn set_next_step(self, input: Option<DialogState>) -> Self
pub fn set_next_step(self, input: Option<DialogState>) -> Self
The next step in the conversation.
sourcepub fn get_next_step(&self) -> &Option<DialogState>
pub fn get_next_step(&self) -> &Option<DialogState>
The next step in the conversation.
sourcepub fn response(self, input: ResponseSpecification) -> Self
pub fn response(self, input: ResponseSpecification) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn set_response(self, input: Option<ResponseSpecification>) -> Self
pub fn set_response(self, input: Option<ResponseSpecification>) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn get_response(&self) -> &Option<ResponseSpecification>
pub fn get_response(&self) -> &Option<ResponseSpecification>
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn build(self) -> Result<ConditionalBranch, BuildError>
pub fn build(self) -> Result<ConditionalBranch, BuildError>
Consumes the builder and constructs a ConditionalBranch.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ConditionalBranchBuilder
impl Clone for ConditionalBranchBuilder
source§fn clone(&self) -> ConditionalBranchBuilder
fn clone(&self) -> ConditionalBranchBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ConditionalBranchBuilder
impl Debug for ConditionalBranchBuilder
source§impl Default for ConditionalBranchBuilder
impl Default for ConditionalBranchBuilder
source§fn default() -> ConditionalBranchBuilder
fn default() -> ConditionalBranchBuilder
source§impl PartialEq for ConditionalBranchBuilder
impl PartialEq for ConditionalBranchBuilder
source§fn eq(&self, other: &ConditionalBranchBuilder) -> bool
fn eq(&self, other: &ConditionalBranchBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ConditionalBranchBuilder
Auto Trait Implementations§
impl Freeze for ConditionalBranchBuilder
impl RefUnwindSafe for ConditionalBranchBuilder
impl Send for ConditionalBranchBuilder
impl Sync for ConditionalBranchBuilder
impl Unpin for ConditionalBranchBuilder
impl UnwindSafe for ConditionalBranchBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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