#[non_exhaustive]pub struct LexConfigurationBuilder { /* private fields */ }Expand description
A builder for LexConfiguration.
Implementations§
source§impl LexConfigurationBuilder
impl LexConfigurationBuilder
sourcepub fn responds_to(self, input: RespondsTo) -> Self
pub fn responds_to(self, input: RespondsTo) -> Self
Deprecated. Use InvokedBy instead.
Determines whether the Amazon Lex V2 bot responds to all standard messages. Control messages are not supported.
sourcepub fn set_responds_to(self, input: Option<RespondsTo>) -> Self
pub fn set_responds_to(self, input: Option<RespondsTo>) -> Self
Deprecated. Use InvokedBy instead.
Determines whether the Amazon Lex V2 bot responds to all standard messages. Control messages are not supported.
sourcepub fn get_responds_to(&self) -> &Option<RespondsTo>
pub fn get_responds_to(&self) -> &Option<RespondsTo>
Deprecated. Use InvokedBy instead.
Determines whether the Amazon Lex V2 bot responds to all standard messages. Control messages are not supported.
sourcepub fn invoked_by(self, input: InvokedBy) -> Self
pub fn invoked_by(self, input: InvokedBy) -> Self
Specifies the type of message that triggers a bot.
sourcepub fn set_invoked_by(self, input: Option<InvokedBy>) -> Self
pub fn set_invoked_by(self, input: Option<InvokedBy>) -> Self
Specifies the type of message that triggers a bot.
sourcepub fn get_invoked_by(&self) -> &Option<InvokedBy>
pub fn get_invoked_by(&self) -> &Option<InvokedBy>
Specifies the type of message that triggers a bot.
sourcepub fn lex_bot_alias_arn(self, input: impl Into<String>) -> Self
pub fn lex_bot_alias_arn(self, input: impl Into<String>) -> Self
The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format: arn:aws:lex:REGION:ACCOUNT:bot-alias/MYBOTID/MYBOTALIAS
sourcepub fn set_lex_bot_alias_arn(self, input: Option<String>) -> Self
pub fn set_lex_bot_alias_arn(self, input: Option<String>) -> Self
The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format: arn:aws:lex:REGION:ACCOUNT:bot-alias/MYBOTID/MYBOTALIAS
sourcepub fn get_lex_bot_alias_arn(&self) -> &Option<String>
pub fn get_lex_bot_alias_arn(&self) -> &Option<String>
The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format: arn:aws:lex:REGION:ACCOUNT:bot-alias/MYBOTID/MYBOTALIAS
sourcepub fn locale_id(self, input: impl Into<String>) -> Self
pub fn locale_id(self, input: impl Into<String>) -> Self
Identifies the Amazon Lex V2 bot's language and locale. The string must match one of the supported locales in Amazon Lex V2. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages in the Amazon Lex V2 Developer Guide.
This field is required.sourcepub fn set_locale_id(self, input: Option<String>) -> Self
pub fn set_locale_id(self, input: Option<String>) -> Self
Identifies the Amazon Lex V2 bot's language and locale. The string must match one of the supported locales in Amazon Lex V2. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages in the Amazon Lex V2 Developer Guide.
sourcepub fn get_locale_id(&self) -> &Option<String>
pub fn get_locale_id(&self) -> &Option<String>
Identifies the Amazon Lex V2 bot's language and locale. The string must match one of the supported locales in Amazon Lex V2. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages in the Amazon Lex V2 Developer Guide.
sourcepub fn welcome_intent(self, input: impl Into<String>) -> Self
pub fn welcome_intent(self, input: impl Into<String>) -> Self
The name of the welcome intent configured in the Amazon Lex V2 bot.
sourcepub fn set_welcome_intent(self, input: Option<String>) -> Self
pub fn set_welcome_intent(self, input: Option<String>) -> Self
The name of the welcome intent configured in the Amazon Lex V2 bot.
sourcepub fn get_welcome_intent(&self) -> &Option<String>
pub fn get_welcome_intent(&self) -> &Option<String>
The name of the welcome intent configured in the Amazon Lex V2 bot.
sourcepub fn build(self) -> Result<LexConfiguration, BuildError>
pub fn build(self) -> Result<LexConfiguration, BuildError>
Consumes the builder and constructs a LexConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LexConfigurationBuilder
impl Clone for LexConfigurationBuilder
source§fn clone(&self) -> LexConfigurationBuilder
fn clone(&self) -> LexConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LexConfigurationBuilder
impl Debug for LexConfigurationBuilder
source§impl Default for LexConfigurationBuilder
impl Default for LexConfigurationBuilder
source§fn default() -> LexConfigurationBuilder
fn default() -> LexConfigurationBuilder
source§impl PartialEq for LexConfigurationBuilder
impl PartialEq for LexConfigurationBuilder
source§fn eq(&self, other: &LexConfigurationBuilder) -> bool
fn eq(&self, other: &LexConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.