Struct aws_sdk_lexmodelsv2::input::UpdateSlotTypeInput
source · #[non_exhaustive]pub struct UpdateSlotTypeInput { /* private fields */ }Implementations§
source§impl UpdateSlotTypeInput
impl UpdateSlotTypeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateSlotType, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateSlotType, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateSlotType>
Examples found in repository?
9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateSlotType,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateSlotTypeError>,
> {
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::UpdateSlotTypeOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateSlotTypeError>,
> {
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 UpdateSlotTypeInput.
source§impl UpdateSlotTypeInput
impl UpdateSlotTypeInput
sourcepub fn slot_type_id(&self) -> Option<&str>
pub fn slot_type_id(&self) -> Option<&str>
The unique identifier of the slot type to update.
sourcepub fn slot_type_name(&self) -> Option<&str>
pub fn slot_type_name(&self) -> Option<&str>
The new name of the slot type.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The new description of the slot type.
sourcepub fn slot_type_values(&self) -> Option<&[SlotTypeValue]>
pub fn slot_type_values(&self) -> Option<&[SlotTypeValue]>
A new list of values and their optional synonyms that define the values that the slot type can take.
sourcepub fn value_selection_setting(&self) -> Option<&SlotValueSelectionSetting>
pub fn value_selection_setting(&self) -> Option<&SlotValueSelectionSetting>
The strategy that Amazon Lex should use when deciding on a value from the list of slot type values.
sourcepub fn parent_slot_type_signature(&self) -> Option<&str>
pub fn parent_slot_type_signature(&self) -> Option<&str>
The new built-in slot type that should be used as the parent of this slot type.
sourcepub fn bot_version(&self) -> Option<&str>
pub fn bot_version(&self) -> Option<&str>
The version of the bot that contains the slot type. Must be DRAFT.
sourcepub fn locale_id(&self) -> Option<&str>
pub fn locale_id(&self) -> Option<&str>
The identifier of the language and locale that contains the slot type. The string must match one of the supported locales. For more information, see Supported languages.
sourcepub fn external_source_setting(&self) -> Option<&ExternalSourceSetting>
pub fn external_source_setting(&self) -> Option<&ExternalSourceSetting>
Provides information about the external source of the slot type's definition.
sourcepub fn composite_slot_type_setting(&self) -> Option<&CompositeSlotTypeSetting>
pub fn composite_slot_type_setting(&self) -> Option<&CompositeSlotTypeSetting>
Specifications for a composite slot type.
Trait Implementations§
source§impl Clone for UpdateSlotTypeInput
impl Clone for UpdateSlotTypeInput
source§fn clone(&self) -> UpdateSlotTypeInput
fn clone(&self) -> UpdateSlotTypeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more