Struct aws_sdk_lexmodelsv2::output::update_intent_output::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for UpdateIntentOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn intent_id(self, input: impl Into<String>) -> Self
pub fn intent_id(self, input: impl Into<String>) -> Self
The identifier of the intent that was updated.
sourcepub fn set_intent_id(self, input: Option<String>) -> Self
pub fn set_intent_id(self, input: Option<String>) -> Self
The identifier of the intent that was updated.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn intent_name(self, input: impl Into<String>) -> Self
pub fn intent_name(self, input: impl Into<String>) -> Self
The updated name of the intent.
sourcepub fn set_intent_name(self, input: Option<String>) -> Self
pub fn set_intent_name(self, input: Option<String>) -> Self
The updated name of the intent.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The updated description of the intent.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The updated description of the intent.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn parent_intent_signature(self, input: impl Into<String>) -> Self
pub fn parent_intent_signature(self, input: impl Into<String>) -> Self
The updated built-in intent that is the parent of this intent.
sourcepub fn set_parent_intent_signature(self, input: Option<String>) -> Self
pub fn set_parent_intent_signature(self, input: Option<String>) -> Self
The updated built-in intent that is the parent of this intent.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn sample_utterances(self, input: SampleUtterance) -> Self
pub fn sample_utterances(self, input: SampleUtterance) -> Self
Appends an item to sample_utterances.
To override the contents of this collection use set_sample_utterances.
The updated list of sample utterances for the intent.
sourcepub fn set_sample_utterances(self, input: Option<Vec<SampleUtterance>>) -> Self
pub fn set_sample_utterances(self, input: Option<Vec<SampleUtterance>>) -> Self
The updated list of sample utterances for the intent.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn dialog_code_hook(self, input: DialogCodeHookSettings) -> Self
pub fn dialog_code_hook(self, input: DialogCodeHookSettings) -> Self
The updated Lambda function called during each turn of the conversation with the user.
sourcepub fn set_dialog_code_hook(self, input: Option<DialogCodeHookSettings>) -> Self
pub fn set_dialog_code_hook(self, input: Option<DialogCodeHookSettings>) -> Self
The updated Lambda function called during each turn of the conversation with the user.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn fulfillment_code_hook(self, input: FulfillmentCodeHookSettings) -> Self
pub fn fulfillment_code_hook(self, input: FulfillmentCodeHookSettings) -> Self
The updated Lambda function called when the intent is ready for fulfillment.
sourcepub fn set_fulfillment_code_hook(
self,
input: Option<FulfillmentCodeHookSettings>
) -> Self
pub fn set_fulfillment_code_hook(
self,
input: Option<FulfillmentCodeHookSettings>
) -> Self
The updated Lambda function called when the intent is ready for fulfillment.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn slot_priorities(self, input: SlotPriority) -> Self
pub fn slot_priorities(self, input: SlotPriority) -> Self
Appends an item to slot_priorities.
To override the contents of this collection use set_slot_priorities.
The updated list of slots and their priorities that are elicited from the user for the intent.
sourcepub fn set_slot_priorities(self, input: Option<Vec<SlotPriority>>) -> Self
pub fn set_slot_priorities(self, input: Option<Vec<SlotPriority>>) -> Self
The updated list of slots and their priorities that are elicited from the user for the intent.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn intent_confirmation_setting(
self,
input: IntentConfirmationSetting
) -> Self
pub fn intent_confirmation_setting(
self,
input: IntentConfirmationSetting
) -> Self
The updated prompts that Amazon Lex sends to the user to confirm the completion of an intent.
sourcepub fn set_intent_confirmation_setting(
self,
input: Option<IntentConfirmationSetting>
) -> Self
pub fn set_intent_confirmation_setting(
self,
input: Option<IntentConfirmationSetting>
) -> Self
The updated prompts that Amazon Lex sends to the user to confirm the completion of an intent.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn intent_closing_setting(self, input: IntentClosingSetting) -> Self
pub fn intent_closing_setting(self, input: IntentClosingSetting) -> Self
The updated response that Amazon Lex sends the user when the intent is closed.
sourcepub fn set_intent_closing_setting(
self,
input: Option<IntentClosingSetting>
) -> Self
pub fn set_intent_closing_setting(
self,
input: Option<IntentClosingSetting>
) -> Self
The updated response that Amazon Lex sends the user when the intent is closed.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}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.
The updated list of contexts that must be active for the intent to be considered by Amazon Lex.
sourcepub fn set_input_contexts(self, input: Option<Vec<InputContext>>) -> Self
pub fn set_input_contexts(self, input: Option<Vec<InputContext>>) -> Self
The updated list of contexts that must be active for the intent to be considered by Amazon Lex.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}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.
The updated list of contexts that Amazon Lex 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
The updated list of contexts that Amazon Lex activates when the intent is fulfilled.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn kendra_configuration(self, input: KendraConfiguration) -> Self
pub fn kendra_configuration(self, input: KendraConfiguration) -> Self
The updated configuration for connecting 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
The updated configuration for connecting to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn bot_id(self, input: impl Into<String>) -> Self
pub fn bot_id(self, input: impl Into<String>) -> Self
The identifier of the bot that contains the intent.
sourcepub fn set_bot_id(self, input: Option<String>) -> Self
pub fn set_bot_id(self, input: Option<String>) -> Self
The identifier of the bot that contains the intent.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn bot_version(self, input: impl Into<String>) -> Self
pub fn bot_version(self, input: impl Into<String>) -> Self
The version of the bot that contains the intent. Will always be DRAFT.
sourcepub fn set_bot_version(self, input: Option<String>) -> Self
pub fn set_bot_version(self, input: Option<String>) -> Self
The version of the bot that contains the intent. Will always be DRAFT.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn locale_id(self, input: impl Into<String>) -> Self
pub fn locale_id(self, input: impl Into<String>) -> Self
The updated language and locale of the intent.
sourcepub fn set_locale_id(self, input: Option<String>) -> Self
pub fn set_locale_id(self, input: Option<String>) -> Self
The updated language and locale of the intent.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn creation_date_time(self, input: DateTime) -> Self
pub fn creation_date_time(self, input: DateTime) -> Self
A timestamp of when the intent was created.
sourcepub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
A timestamp of when the intent was created.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn last_updated_date_time(self, input: DateTime) -> Self
pub fn last_updated_date_time(self, input: DateTime) -> Self
A timestamp of the last time that the intent was modified.
sourcepub fn set_last_updated_date_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_date_time(self, input: Option<DateTime>) -> Self
A timestamp of the last time that the intent was modified.
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn initial_response_setting(self, input: InitialResponseSetting) -> Self
pub fn initial_response_setting(self, input: InitialResponseSetting) -> Self
sourcepub fn set_initial_response_setting(
self,
input: Option<InitialResponseSetting>
) -> Self
pub fn set_initial_response_setting(
self,
input: Option<InitialResponseSetting>
) -> Self
Examples found in repository?
5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996
pub(crate) fn deser_operation_crate_operation_update_intent(
value: &[u8],
mut builder: crate::output::update_intent_output::Builder,
) -> Result<
crate::output::update_intent_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"botId" => {
builder = builder.set_bot_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"botVersion" => {
builder = builder.set_bot_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"creationDateTime" => {
builder = builder.set_creation_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"description" => {
builder = builder.set_description(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"dialogCodeHook" => {
builder = builder.set_dialog_code_hook(
crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
);
}
"fulfillmentCodeHook" => {
builder = builder.set_fulfillment_code_hook(
crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
);
}
"initialResponseSetting" => {
builder = builder.set_initial_response_setting(
crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
);
}
"inputContexts" => {
builder = builder.set_input_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
);
}
"intentClosingSetting" => {
builder = builder.set_intent_closing_setting(
crate::json_deser::deser_structure_crate_model_intent_closing_setting(
tokens,
)?,
);
}
"intentConfirmationSetting" => {
builder = builder.set_intent_confirmation_setting(
crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
);
}
"intentId" => {
builder = builder.set_intent_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"intentName" => {
builder = builder.set_intent_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"kendraConfiguration" => {
builder = builder.set_kendra_configuration(
crate::json_deser::deser_structure_crate_model_kendra_configuration(
tokens,
)?,
);
}
"lastUpdatedDateTime" => {
builder = builder.set_last_updated_date_time(
aws_smithy_json::deserialize::token::expect_timestamp_or_null(
tokens.next(),
aws_smithy_types::date_time::Format::EpochSeconds,
)?,
);
}
"localeId" => {
builder = builder.set_locale_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"outputContexts" => {
builder = builder.set_output_contexts(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
);
}
"parentIntentSignature" => {
builder = builder.set_parent_intent_signature(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"sampleUtterances" => {
builder = builder.set_sample_utterances(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
);
}
"slotPriorities" => {
builder = builder.set_slot_priorities(
crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn build(self) -> UpdateIntentOutput
pub fn build(self) -> UpdateIntentOutput
Consumes the builder and constructs a UpdateIntentOutput.
Examples found in repository?
8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237
pub fn parse_update_intent_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::UpdateIntentOutput, crate::error::UpdateIntentError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_intent_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_update_intent(
response.body().as_ref(),
output,
)
.map_err(crate::error::UpdateIntentError::unhandled)?;
output.build()
})
}