Struct aws_sdk_lexmodelsv2::output::create_intent_output::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for CreateIntentOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_intent_id(self, input: Option<String>) -> Self
pub fn set_intent_id(self, input: Option<String>) -> Self
A unique identifier for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 name specified for the intent.
sourcepub fn set_intent_name(self, input: Option<String>) -> Self
pub fn set_intent_name(self, input: Option<String>) -> Self
The name specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 description specified for the intent.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 signature of the parent intent specified for the intent.
sourcepub fn set_parent_intent_signature(self, input: Option<String>) -> Self
pub fn set_parent_intent_signature(self, input: Option<String>) -> Self
The signature of the parent intent specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 sample utterances specified 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 sample utterances specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 dialog Lambda function specified for the intent.
sourcepub fn set_dialog_code_hook(self, input: Option<DialogCodeHookSettings>) -> Self
pub fn set_dialog_code_hook(self, input: Option<DialogCodeHookSettings>) -> Self
The dialog Lambda function specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 fulfillment Lambda function specified for the intent.
sourcepub fn set_fulfillment_code_hook(
self,
input: Option<FulfillmentCodeHookSettings>
) -> Self
pub fn set_fulfillment_code_hook(
self,
input: Option<FulfillmentCodeHookSettings>
) -> Self
The fulfillment Lambda function specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 confirmation setting specified for the intent.
sourcepub fn set_intent_confirmation_setting(
self,
input: Option<IntentConfirmationSetting>
) -> Self
pub fn set_intent_confirmation_setting(
self,
input: Option<IntentConfirmationSetting>
) -> Self
The confirmation setting specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 closing setting specified for the intent.
sourcepub fn set_intent_closing_setting(
self,
input: Option<IntentClosingSetting>
) -> Self
pub fn set_intent_closing_setting(
self,
input: Option<IntentClosingSetting>
) -> Self
The closing setting specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 list of input contexts specified for the intent.
sourcepub fn set_input_contexts(self, input: Option<Vec<InputContext>>) -> Self
pub fn set_input_contexts(self, input: Option<Vec<InputContext>>) -> Self
The list of input contexts specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 list of output contexts specified for the intent.
sourcepub fn set_output_contexts(self, input: Option<Vec<OutputContext>>) -> Self
pub fn set_output_contexts(self, input: Option<Vec<OutputContext>>) -> Self
The list of output contexts specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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
Configuration for searching a Amazon Kendra index specified for the intent.
sourcepub fn set_kendra_configuration(self, input: Option<KendraConfiguration>) -> Self
pub fn set_kendra_configuration(self, input: Option<KendraConfiguration>) -> Self
Configuration for searching a Amazon Kendra index specified for the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 associated with 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 associated with the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 identifier of the version of the bot associated with the intent.
sourcepub fn set_bot_version(self, input: Option<String>) -> Self
pub fn set_bot_version(self, input: Option<String>) -> Self
The identifier of the version of the bot associated with the intent.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 locale that the intent is specified to use.
sourcepub fn set_locale_id(self, input: Option<String>) -> Self
pub fn set_locale_id(self, input: Option<String>) -> Self
The locale that the intent is specified to use.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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 the date and time that 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 the date and time that the intent was created.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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
Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.
sourcepub fn set_initial_response_setting(
self,
input: Option<InitialResponseSetting>
) -> Self
pub fn set_initial_response_setting(
self,
input: Option<InitialResponseSetting>
) -> Self
Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.
Examples found in repository?
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
pub(crate) fn deser_operation_crate_operation_create_intent(
value: &[u8],
mut builder: crate::output::create_intent_output::Builder,
) -> Result<
crate::output::create_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,
)?,
);
}
"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)?
);
}
_ => 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) -> CreateIntentOutput
pub fn build(self) -> CreateIntentOutput
Consumes the builder and constructs a CreateIntentOutput.
Examples found in repository?
995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009
pub fn parse_create_intent_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::CreateIntentOutput, crate::error::CreateIntentError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::create_intent_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_create_intent(
response.body().as_ref(),
output,
)
.map_err(crate::error::CreateIntentError::unhandled)?;
output.build()
})
}