#[non_exhaustive]pub struct IntentClosingSettingBuilder { /* private fields */ }
Expand description
A builder for IntentClosingSetting
.
Implementations§
source§impl IntentClosingSettingBuilder
impl IntentClosingSettingBuilder
sourcepub fn closing_response(self, input: ResponseSpecification) -> Self
pub fn closing_response(self, input: ResponseSpecification) -> Self
The response that Amazon Lex sends to the user when the intent is complete.
sourcepub fn set_closing_response(self, input: Option<ResponseSpecification>) -> Self
pub fn set_closing_response(self, input: Option<ResponseSpecification>) -> Self
The response that Amazon Lex sends to the user when the intent is complete.
sourcepub fn get_closing_response(&self) -> &Option<ResponseSpecification>
pub fn get_closing_response(&self) -> &Option<ResponseSpecification>
The response that Amazon Lex sends to the user when the intent is complete.
sourcepub fn active(self, input: bool) -> Self
pub fn active(self, input: bool) -> Self
Specifies whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the active
field isn't specified, the default is true.
sourcepub fn set_active(self, input: Option<bool>) -> Self
pub fn set_active(self, input: Option<bool>) -> Self
Specifies whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the active
field isn't specified, the default is true.
sourcepub fn get_active(&self) -> &Option<bool>
pub fn get_active(&self) -> &Option<bool>
Specifies whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the active
field isn't specified, the default is true.
sourcepub fn next_step(self, input: DialogState) -> Self
pub fn next_step(self, input: DialogState) -> Self
Specifies the next step that the bot executes after playing the intent's closing response.
sourcepub fn set_next_step(self, input: Option<DialogState>) -> Self
pub fn set_next_step(self, input: Option<DialogState>) -> Self
Specifies the next step that the bot executes after playing the intent's closing response.
sourcepub fn get_next_step(&self) -> &Option<DialogState>
pub fn get_next_step(&self) -> &Option<DialogState>
Specifies the next step that the bot executes after playing the intent's closing response.
sourcepub fn conditional(self, input: ConditionalSpecification) -> Self
pub fn conditional(self, input: ConditionalSpecification) -> Self
A list of conditional branches associated with the intent's closing response. These branches are executed when the nextStep
attribute is set to EvalutateConditional
.
sourcepub fn set_conditional(self, input: Option<ConditionalSpecification>) -> Self
pub fn set_conditional(self, input: Option<ConditionalSpecification>) -> Self
A list of conditional branches associated with the intent's closing response. These branches are executed when the nextStep
attribute is set to EvalutateConditional
.
sourcepub fn get_conditional(&self) -> &Option<ConditionalSpecification>
pub fn get_conditional(&self) -> &Option<ConditionalSpecification>
A list of conditional branches associated with the intent's closing response. These branches are executed when the nextStep
attribute is set to EvalutateConditional
.
sourcepub fn build(self) -> IntentClosingSetting
pub fn build(self) -> IntentClosingSetting
Consumes the builder and constructs a IntentClosingSetting
.
Trait Implementations§
source§impl Clone for IntentClosingSettingBuilder
impl Clone for IntentClosingSettingBuilder
source§fn clone(&self) -> IntentClosingSettingBuilder
fn clone(&self) -> IntentClosingSettingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IntentClosingSettingBuilder
impl Debug for IntentClosingSettingBuilder
source§impl Default for IntentClosingSettingBuilder
impl Default for IntentClosingSettingBuilder
source§fn default() -> IntentClosingSettingBuilder
fn default() -> IntentClosingSettingBuilder
source§impl PartialEq for IntentClosingSettingBuilder
impl PartialEq for IntentClosingSettingBuilder
source§fn eq(&self, other: &IntentClosingSettingBuilder) -> bool
fn eq(&self, other: &IntentClosingSettingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.