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