pub struct Builder { /* private fields */ }Expand description
A builder for PostDialogCodeHookInvocationSpecification.
Implementations§
source§impl Builder
impl Builder
sourcepub fn success_response(self, input: ResponseSpecification) -> Self
pub fn success_response(self, input: ResponseSpecification) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn set_success_response(self, input: Option<ResponseSpecification>) -> Self
pub fn set_success_response(self, input: Option<ResponseSpecification>) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn success_next_step(self, input: DialogState) -> Self
pub fn success_next_step(self, input: DialogState) -> Self
Specifics the next step the bot runs after the dialog code hook finishes successfully.
sourcepub fn set_success_next_step(self, input: Option<DialogState>) -> Self
pub fn set_success_next_step(self, input: Option<DialogState>) -> Self
Specifics the next step the bot runs after the dialog code hook finishes successfully.
sourcepub fn success_conditional(self, input: ConditionalSpecification) -> Self
pub fn success_conditional(self, input: ConditionalSpecification) -> Self
A list of conditional branches to evaluate after the dialog code hook finishes successfully.
sourcepub fn set_success_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
pub fn set_success_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
A list of conditional branches to evaluate after the dialog code hook finishes successfully.
sourcepub fn failure_response(self, input: ResponseSpecification) -> Self
pub fn failure_response(self, input: ResponseSpecification) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn set_failure_response(self, input: Option<ResponseSpecification>) -> Self
pub fn set_failure_response(self, input: Option<ResponseSpecification>) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn failure_next_step(self, input: DialogState) -> Self
pub fn failure_next_step(self, input: DialogState) -> Self
Specifies the next step the bot runs after the dialog code hook throws an exception or returns with the State field of the Intent object set to Failed.
sourcepub fn set_failure_next_step(self, input: Option<DialogState>) -> Self
pub fn set_failure_next_step(self, input: Option<DialogState>) -> Self
Specifies the next step the bot runs after the dialog code hook throws an exception or returns with the State field of the Intent object set to Failed.
sourcepub fn failure_conditional(self, input: ConditionalSpecification) -> Self
pub fn failure_conditional(self, input: ConditionalSpecification) -> Self
A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with the State field of the Intent object set to Failed.
sourcepub fn set_failure_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
pub fn set_failure_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with the State field of the Intent object set to Failed.
sourcepub fn timeout_response(self, input: ResponseSpecification) -> Self
pub fn timeout_response(self, input: ResponseSpecification) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn set_timeout_response(self, input: Option<ResponseSpecification>) -> Self
pub fn set_timeout_response(self, input: Option<ResponseSpecification>) -> Self
Specifies a list of message groups that Amazon Lex uses to respond the user input.
sourcepub fn timeout_next_step(self, input: DialogState) -> Self
pub fn timeout_next_step(self, input: DialogState) -> Self
Specifies the next step that the bot runs when the code hook times out.
sourcepub fn set_timeout_next_step(self, input: Option<DialogState>) -> Self
pub fn set_timeout_next_step(self, input: Option<DialogState>) -> Self
Specifies the next step that the bot runs when the code hook times out.
sourcepub fn timeout_conditional(self, input: ConditionalSpecification) -> Self
pub fn timeout_conditional(self, input: ConditionalSpecification) -> Self
A list of conditional branches to evaluate if the code hook times out.
sourcepub fn set_timeout_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
pub fn set_timeout_conditional(
self,
input: Option<ConditionalSpecification>
) -> Self
A list of conditional branches to evaluate if the code hook times out.
sourcepub fn build(self) -> PostDialogCodeHookInvocationSpecification
pub fn build(self) -> PostDialogCodeHookInvocationSpecification
Consumes the builder and constructs a PostDialogCodeHookInvocationSpecification.