#[non_exhaustive]pub struct DialogCodeHookInvocationSettingBuilder { /* private fields */ }
Expand description
A builder for DialogCodeHookInvocationSetting
.
Implementations§
source§impl DialogCodeHookInvocationSettingBuilder
impl DialogCodeHookInvocationSettingBuilder
sourcepub fn enable_code_hook_invocation(self, input: bool) -> Self
pub fn enable_code_hook_invocation(self, input: bool) -> Self
Indicates whether a Lambda function should be invoked for the dialog.
This field is required.sourcepub fn set_enable_code_hook_invocation(self, input: Option<bool>) -> Self
pub fn set_enable_code_hook_invocation(self, input: Option<bool>) -> Self
Indicates whether a Lambda function should be invoked for the dialog.
sourcepub fn get_enable_code_hook_invocation(&self) -> &Option<bool>
pub fn get_enable_code_hook_invocation(&self) -> &Option<bool>
Indicates whether a Lambda function should be invoked for the dialog.
sourcepub fn active(self, input: bool) -> Self
pub fn active(self, input: bool) -> Self
Determines whether a dialog code hook is used when the intent is activated.
This field is required.sourcepub fn set_active(self, input: Option<bool>) -> Self
pub fn set_active(self, input: Option<bool>) -> Self
Determines whether a dialog code hook is used when the intent is activated.
sourcepub fn get_active(&self) -> &Option<bool>
pub fn get_active(&self) -> &Option<bool>
Determines whether a dialog code hook is used when the intent is activated.
sourcepub fn invocation_label(self, input: impl Into<String>) -> Self
pub fn invocation_label(self, input: impl Into<String>) -> Self
A label that indicates the dialog step from which the dialog code hook is happening.
sourcepub fn set_invocation_label(self, input: Option<String>) -> Self
pub fn set_invocation_label(self, input: Option<String>) -> Self
A label that indicates the dialog step from which the dialog code hook is happening.
sourcepub fn get_invocation_label(&self) -> &Option<String>
pub fn get_invocation_label(&self) -> &Option<String>
A label that indicates the dialog step from which the dialog code hook is happening.
sourcepub fn post_code_hook_specification(
self,
input: PostDialogCodeHookInvocationSpecification
) -> Self
pub fn post_code_hook_specification( self, input: PostDialogCodeHookInvocationSpecification ) -> Self
Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.
This field is required.sourcepub fn set_post_code_hook_specification(
self,
input: Option<PostDialogCodeHookInvocationSpecification>
) -> Self
pub fn set_post_code_hook_specification( self, input: Option<PostDialogCodeHookInvocationSpecification> ) -> Self
Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.
sourcepub fn get_post_code_hook_specification(
&self
) -> &Option<PostDialogCodeHookInvocationSpecification>
pub fn get_post_code_hook_specification( &self ) -> &Option<PostDialogCodeHookInvocationSpecification>
Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.
sourcepub fn build(self) -> Result<DialogCodeHookInvocationSetting, BuildError>
pub fn build(self) -> Result<DialogCodeHookInvocationSetting, BuildError>
Consumes the builder and constructs a DialogCodeHookInvocationSetting
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DialogCodeHookInvocationSettingBuilder
impl Clone for DialogCodeHookInvocationSettingBuilder
source§fn clone(&self) -> DialogCodeHookInvocationSettingBuilder
fn clone(&self) -> DialogCodeHookInvocationSettingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DialogCodeHookInvocationSettingBuilder
impl Default for DialogCodeHookInvocationSettingBuilder
source§fn default() -> DialogCodeHookInvocationSettingBuilder
fn default() -> DialogCodeHookInvocationSettingBuilder
source§impl PartialEq for DialogCodeHookInvocationSettingBuilder
impl PartialEq for DialogCodeHookInvocationSettingBuilder
source§fn eq(&self, other: &DialogCodeHookInvocationSettingBuilder) -> bool
fn eq(&self, other: &DialogCodeHookInvocationSettingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.