Struct aws_sdk_lexmodelsv2::input::UpdateBotLocaleInput
source · #[non_exhaustive]pub struct UpdateBotLocaleInput { /* private fields */ }Implementations§
source§impl UpdateBotLocaleInput
impl UpdateBotLocaleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateBotLocale, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateBotLocale, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateBotLocale>
Examples found in repository?
src/client.rs (line 8508)
8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateBotLocale,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateBotLocaleError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateBotLocaleOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateBotLocaleError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateBotLocaleInput.
source§impl UpdateBotLocaleInput
impl UpdateBotLocaleInput
sourcepub fn bot_id(&self) -> Option<&str>
pub fn bot_id(&self) -> Option<&str>
The unique identifier of the bot that contains the locale.
sourcepub fn bot_version(&self) -> Option<&str>
pub fn bot_version(&self) -> Option<&str>
The version of the bot that contains the locale to be updated. The version can only be the DRAFT version.
sourcepub fn locale_id(&self) -> Option<&str>
pub fn locale_id(&self) -> Option<&str>
The identifier of the language and locale to update. The string must match one of the supported locales. For more information, see Supported languages.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The new description of the locale.
sourcepub fn nlu_intent_confidence_threshold(&self) -> Option<f64>
pub fn nlu_intent_confidence_threshold(&self) -> Option<f64>
The new confidence threshold where Amazon Lex inserts the AMAZON.FallbackIntent and AMAZON.KendraSearchIntent intents in the list of possible intents for an utterance.
sourcepub fn voice_settings(&self) -> Option<&VoiceSettings>
pub fn voice_settings(&self) -> Option<&VoiceSettings>
The new Amazon Polly voice Amazon Lex should use for voice interaction with the user.
Trait Implementations§
source§impl Clone for UpdateBotLocaleInput
impl Clone for UpdateBotLocaleInput
source§fn clone(&self) -> UpdateBotLocaleInput
fn clone(&self) -> UpdateBotLocaleInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more