#[non_exhaustive]pub struct PutIntentOutputBuilder { /* private fields */ }Expand description
A builder for PutIntentOutput.
Implementations§
Source§impl PutIntentOutputBuilder
impl PutIntentOutputBuilder
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 that are 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 that are 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 that are 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 that are 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 that are 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 that are configured for the intent.
Sourcepub fn confirmation_prompt(self, input: Prompt) -> Self
pub fn confirmation_prompt(self, input: Prompt) -> Self
If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.
Sourcepub fn set_confirmation_prompt(self, input: Option<Prompt>) -> Self
pub fn set_confirmation_prompt(self, input: Option<Prompt>) -> Self
If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.
Sourcepub fn get_confirmation_prompt(&self) -> &Option<Prompt>
pub fn get_confirmation_prompt(&self) -> &Option<Prompt>
If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.
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 intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.
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 intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.
Sourcepub fn get_follow_up_prompt(&self) -> &Option<FollowUpPrompt>
pub fn get_follow_up_prompt(&self) -> &Option<FollowUpPrompt>
If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.
Sourcepub fn conclusion_statement(self, input: Statement) -> Self
pub fn conclusion_statement(self, input: Statement) -> Self
After the Lambda function specified in thefulfillmentActivityintent 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 thefulfillmentActivityintent 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 thefulfillmentActivityintent 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 intent, Amazon Lex invokes this Lambda function for each user input.
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 intent, Amazon Lex invokes this Lambda function for each user input.
Sourcepub fn get_dialog_code_hook(&self) -> &Option<CodeHook>
pub fn get_dialog_code_hook(&self) -> &Option<CodeHook>
If defined in the intent, Amazon Lex invokes this Lambda function for each user input.
Sourcepub fn fulfillment_activity(self, input: FulfillmentActivity) -> Self
pub fn fulfillment_activity(self, input: FulfillmentActivity) -> Self
If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.
Sourcepub fn set_fulfillment_activity(
self,
input: Option<FulfillmentActivity>,
) -> Self
pub fn set_fulfillment_activity( self, input: Option<FulfillmentActivity>, ) -> Self
If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.
Sourcepub fn get_fulfillment_activity(&self) -> &Option<FulfillmentActivity>
pub fn get_fulfillment_activity(&self) -> &Option<FulfillmentActivity>
If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.
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 the built-in intent that this intent is based on.
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 the built-in intent that this intent is based on.
Sourcepub fn get_parent_intent_signature(&self) -> &Option<String>
pub fn get_parent_intent_signature(&self) -> &Option<String>
A unique identifier for the built-in intent that this intent is based on.
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 last update dates 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 last update dates 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 last update dates 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 version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The version of the intent. For a new intent, the version is always $LATEST.
Sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of the intent. For a new intent, the version is always $LATEST.
Sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of the intent. For a new intent, the version is always $LATEST.
Sourcepub fn checksum(self, input: impl Into<String>) -> Self
pub fn checksum(self, input: impl Into<String>) -> Self
Checksum of the $LATESTversion of the intent created or updated.
Sourcepub fn set_checksum(self, input: Option<String>) -> Self
pub fn set_checksum(self, input: Option<String>) -> Self
Checksum of the $LATESTversion of the intent created or updated.
Sourcepub fn get_checksum(&self) -> &Option<String>
pub fn get_checksum(&self) -> &Option<String>
Checksum of the $LATESTversion of the intent created or updated.
Sourcepub fn create_version(self, input: bool) -> Self
pub fn create_version(self, input: bool) -> Self
True if a new version of the intent was created. If the createVersion field was not specified in the request, the createVersion field is set to false in the response.
Sourcepub fn set_create_version(self, input: Option<bool>) -> Self
pub fn set_create_version(self, input: Option<bool>) -> Self
True if a new version of the intent was created. If the createVersion field was not specified in the request, the createVersion field is set to false in the response.
Sourcepub fn get_create_version(&self) -> &Option<bool>
pub fn get_create_version(&self) -> &Option<bool>
True if a new version of the intent was created. If the createVersion field was not specified in the request, the createVersion field is set to false in the response.
Sourcepub fn kendra_configuration(self, input: KendraConfiguration) -> Self
pub fn kendra_configuration(self, input: KendraConfiguration) -> Self
Configuration information, if any, required to connect to an Amazon Kendra index and use 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, required to connect to an Amazon Kendra index and use the AMAZON.KendraSearchIntent intent.
Sourcepub fn get_kendra_configuration(&self) -> &Option<KendraConfiguration>
pub fn get_kendra_configuration(&self) -> &Option<KendraConfiguration>
Configuration information, if any, required to connect to an Amazon Kendra index and use 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) -> PutIntentOutput
pub fn build(self) -> PutIntentOutput
Consumes the builder and constructs a PutIntentOutput.
Trait Implementations§
Source§impl Clone for PutIntentOutputBuilder
impl Clone for PutIntentOutputBuilder
Source§fn clone(&self) -> PutIntentOutputBuilder
fn clone(&self) -> PutIntentOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PutIntentOutputBuilder
impl Debug for PutIntentOutputBuilder
Source§impl Default for PutIntentOutputBuilder
impl Default for PutIntentOutputBuilder
Source§fn default() -> PutIntentOutputBuilder
fn default() -> PutIntentOutputBuilder
Source§impl PartialEq for PutIntentOutputBuilder
impl PartialEq for PutIntentOutputBuilder
impl StructuralPartialEq for PutIntentOutputBuilder
Auto Trait Implementations§
impl Freeze for PutIntentOutputBuilder
impl RefUnwindSafe for PutIntentOutputBuilder
impl Send for PutIntentOutputBuilder
impl Sync for PutIntentOutputBuilder
impl Unpin for PutIntentOutputBuilder
impl UnwindSafe for PutIntentOutputBuilder
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);