#[non_exhaustive]pub struct GetIntentOutputBuilder { /* private fields */ }Expand description
A builder for GetIntentOutput.
Implementations§
Source§impl GetIntentOutputBuilder
impl GetIntentOutputBuilder
Sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the intent.
Sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the intent.
Sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the intent.
Sourcepub fn slots(self, input: Slot) -> Self
pub fn slots(self, input: Slot) -> Self
Appends an item to slots.
To override the contents of this collection use set_slots.
An array of intent slots configured for the intent.
Sourcepub fn set_slots(self, input: Option<Vec<Slot>>) -> Self
pub fn set_slots(self, input: Option<Vec<Slot>>) -> Self
An array of intent slots configured for the intent.
Sourcepub fn get_slots(&self) -> &Option<Vec<Slot>>
pub fn get_slots(&self) -> &Option<Vec<Slot>>
An array of intent slots configured for the intent.
Sourcepub fn sample_utterances(self, input: impl Into<String>) -> Self
pub fn sample_utterances(self, input: impl Into<String>) -> Self
Appends an item to sample_utterances.
To override the contents of this collection use set_sample_utterances.
An array of sample utterances configured for the intent.
Sourcepub fn set_sample_utterances(self, input: Option<Vec<String>>) -> Self
pub fn set_sample_utterances(self, input: Option<Vec<String>>) -> Self
An array of sample utterances configured for the intent.
Sourcepub fn get_sample_utterances(&self) -> &Option<Vec<String>>
pub fn get_sample_utterances(&self) -> &Option<Vec<String>>
An array of sample utterances configured for the intent.
Sourcepub fn confirmation_prompt(self, input: Prompt) -> Self
pub fn confirmation_prompt(self, input: Prompt) -> Self
If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.
Sourcepub fn set_confirmation_prompt(self, input: Option<Prompt>) -> Self
pub fn set_confirmation_prompt(self, input: Option<Prompt>) -> Self
If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.
Sourcepub fn get_confirmation_prompt(&self) -> &Option<Prompt>
pub fn get_confirmation_prompt(&self) -> &Option<Prompt>
If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.
Sourcepub fn rejection_statement(self, input: Statement) -> Self
pub fn rejection_statement(self, input: Statement) -> Self
If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.
Sourcepub fn set_rejection_statement(self, input: Option<Statement>) -> Self
pub fn set_rejection_statement(self, input: Option<Statement>) -> Self
If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.
Sourcepub fn get_rejection_statement(&self) -> &Option<Statement>
pub fn get_rejection_statement(&self) -> &Option<Statement>
If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.
Sourcepub fn follow_up_prompt(self, input: FollowUpPrompt) -> Self
pub fn follow_up_prompt(self, input: FollowUpPrompt) -> Self
If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.
Sourcepub fn set_follow_up_prompt(self, input: Option<FollowUpPrompt>) -> Self
pub fn set_follow_up_prompt(self, input: Option<FollowUpPrompt>) -> Self
If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.
Sourcepub fn get_follow_up_prompt(&self) -> &Option<FollowUpPrompt>
pub fn get_follow_up_prompt(&self) -> &Option<FollowUpPrompt>
If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.
Sourcepub fn conclusion_statement(self, input: Statement) -> Self
pub fn conclusion_statement(self, input: Statement) -> Self
After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.
Sourcepub fn set_conclusion_statement(self, input: Option<Statement>) -> Self
pub fn set_conclusion_statement(self, input: Option<Statement>) -> Self
After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.
Sourcepub fn get_conclusion_statement(&self) -> &Option<Statement>
pub fn get_conclusion_statement(&self) -> &Option<Statement>
After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.
Sourcepub fn dialog_code_hook(self, input: CodeHook) -> Self
pub fn dialog_code_hook(self, input: CodeHook) -> Self
If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.
Sourcepub fn set_dialog_code_hook(self, input: Option<CodeHook>) -> Self
pub fn set_dialog_code_hook(self, input: Option<CodeHook>) -> Self
If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.
Sourcepub fn get_dialog_code_hook(&self) -> &Option<CodeHook>
pub fn get_dialog_code_hook(&self) -> &Option<CodeHook>
If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.
Sourcepub fn fulfillment_activity(self, input: FulfillmentActivity) -> Self
pub fn fulfillment_activity(self, input: FulfillmentActivity) -> Self
Describes how the intent is fulfilled. For more information, see PutIntent.
Sourcepub fn set_fulfillment_activity(
self,
input: Option<FulfillmentActivity>,
) -> Self
pub fn set_fulfillment_activity( self, input: Option<FulfillmentActivity>, ) -> Self
Describes how the intent is fulfilled. For more information, see PutIntent.
Sourcepub fn get_fulfillment_activity(&self) -> &Option<FulfillmentActivity>
pub fn get_fulfillment_activity(&self) -> &Option<FulfillmentActivity>
Describes how the intent is fulfilled. For more information, see PutIntent.
Sourcepub fn parent_intent_signature(self, input: impl Into<String>) -> Self
pub fn parent_intent_signature(self, input: impl Into<String>) -> Self
A unique identifier for a built-in intent.
Sourcepub fn set_parent_intent_signature(self, input: Option<String>) -> Self
pub fn set_parent_intent_signature(self, input: Option<String>) -> Self
A unique identifier for a built-in intent.
Sourcepub fn get_parent_intent_signature(&self) -> &Option<String>
pub fn get_parent_intent_signature(&self) -> &Option<String>
A unique identifier for a built-in intent.
Sourcepub fn last_updated_date(self, input: DateTime) -> Self
pub fn last_updated_date(self, input: DateTime) -> Self
The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.
Sourcepub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.
Sourcepub fn get_last_updated_date(&self) -> &Option<DateTime>
pub fn get_last_updated_date(&self) -> &Option<DateTime>
The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.
Sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date that the intent was created.
Sourcepub fn set_created_date(self, input: Option<DateTime>) -> Self
pub fn set_created_date(self, input: Option<DateTime>) -> Self
The date that the intent was created.
Sourcepub fn get_created_date(&self) -> &Option<DateTime>
pub fn get_created_date(&self) -> &Option<DateTime>
The date that the intent was created.
Sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of the intent.
Sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of the intent.
Sourcepub fn set_checksum(self, input: Option<String>) -> Self
pub fn set_checksum(self, input: Option<String>) -> Self
Checksum of the intent.
Sourcepub fn get_checksum(&self) -> &Option<String>
pub fn get_checksum(&self) -> &Option<String>
Checksum of the intent.
Sourcepub fn kendra_configuration(self, input: KendraConfiguration) -> Self
pub fn kendra_configuration(self, input: KendraConfiguration) -> Self
Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.
Sourcepub fn set_kendra_configuration(
self,
input: Option<KendraConfiguration>,
) -> Self
pub fn set_kendra_configuration( self, input: Option<KendraConfiguration>, ) -> Self
Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.
Sourcepub fn get_kendra_configuration(&self) -> &Option<KendraConfiguration>
pub fn get_kendra_configuration(&self) -> &Option<KendraConfiguration>
Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.
Sourcepub fn input_contexts(self, input: InputContext) -> Self
pub fn input_contexts(self, input: InputContext) -> Self
Appends an item to input_contexts.
To override the contents of this collection use set_input_contexts.
An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.
Sourcepub fn set_input_contexts(self, input: Option<Vec<InputContext>>) -> Self
pub fn set_input_contexts(self, input: Option<Vec<InputContext>>) -> Self
An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.
Sourcepub fn get_input_contexts(&self) -> &Option<Vec<InputContext>>
pub fn get_input_contexts(&self) -> &Option<Vec<InputContext>>
An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.
Sourcepub fn output_contexts(self, input: OutputContext) -> Self
pub fn output_contexts(self, input: OutputContext) -> Self
Appends an item to output_contexts.
To override the contents of this collection use set_output_contexts.
An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.
Sourcepub fn set_output_contexts(self, input: Option<Vec<OutputContext>>) -> Self
pub fn set_output_contexts(self, input: Option<Vec<OutputContext>>) -> Self
An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.
Sourcepub fn get_output_contexts(&self) -> &Option<Vec<OutputContext>>
pub fn get_output_contexts(&self) -> &Option<Vec<OutputContext>>
An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.
Sourcepub fn build(self) -> GetIntentOutput
pub fn build(self) -> GetIntentOutput
Consumes the builder and constructs a GetIntentOutput.
Trait Implementations§
Source§impl Clone for GetIntentOutputBuilder
impl Clone for GetIntentOutputBuilder
Source§fn clone(&self) -> GetIntentOutputBuilder
fn clone(&self) -> GetIntentOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetIntentOutputBuilder
impl Debug for GetIntentOutputBuilder
Source§impl Default for GetIntentOutputBuilder
impl Default for GetIntentOutputBuilder
Source§fn default() -> GetIntentOutputBuilder
fn default() -> GetIntentOutputBuilder
Source§impl PartialEq for GetIntentOutputBuilder
impl PartialEq for GetIntentOutputBuilder
impl StructuralPartialEq for GetIntentOutputBuilder
Auto Trait Implementations§
impl Freeze for GetIntentOutputBuilder
impl RefUnwindSafe for GetIntentOutputBuilder
impl Send for GetIntentOutputBuilder
impl Sync for GetIntentOutputBuilder
impl Unpin for GetIntentOutputBuilder
impl UnwindSafe for GetIntentOutputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);