#[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 ==
.impl StructuralPartialEq for DialogCodeHookInvocationSettingBuilder
Auto Trait Implementations§
impl Freeze for DialogCodeHookInvocationSettingBuilder
impl RefUnwindSafe for DialogCodeHookInvocationSettingBuilder
impl Send for DialogCodeHookInvocationSettingBuilder
impl Sync for DialogCodeHookInvocationSettingBuilder
impl Unpin for DialogCodeHookInvocationSettingBuilder
impl UnwindSafe for DialogCodeHookInvocationSettingBuilder
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> 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