pub struct Builder { /* private fields */ }
Expand description

A builder for CreateIntentOutput.

Implementations§

A unique identifier for the intent.

A unique identifier for the intent.

Examples found in repository?
src/json_deser.rs (lines 1073-1079)
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)
}

The name specified for the intent.

The name specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1082-1088)
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)
}

The description specified for the intent.

The description specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1032-1038)
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)
}

The signature of the parent intent specified for the intent.

The signature of the parent intent specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1112-1118)
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)
}

Appends an item to sample_utterances.

To override the contents of this collection use set_sample_utterances.

The sample utterances specified for the intent.

The sample utterances specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1121-1123)
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)
}

The dialog Lambda function specified for the intent.

The dialog Lambda function specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1041-1043)
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)
}

The fulfillment Lambda function specified for the intent.

The fulfillment Lambda function specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1046-1048)
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)
}

The confirmation setting specified for the intent.

The confirmation setting specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1068-1070)
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)
}

The closing setting specified for the intent.

The closing setting specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1061-1065)
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)
}

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.

The list of input contexts specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1056-1058)
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)
}

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.

The list of output contexts specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1107-1109)
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)
}

Configuration for searching a Amazon Kendra index specified for the intent.

Configuration for searching a Amazon Kendra index specified for the intent.

Examples found in repository?
src/json_deser.rs (lines 1091-1095)
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)
}

The identifier of the bot associated with the intent.

The identifier of the bot associated with the intent.

Examples found in repository?
src/json_deser.rs (lines 1006-1012)
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)
}

The identifier of the version of the bot associated with the intent.

The identifier of the version of the bot associated with the intent.

Examples found in repository?
src/json_deser.rs (lines 1015-1021)
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)
}

The locale that the intent is specified to use.

The locale that the intent is specified to use.

Examples found in repository?
src/json_deser.rs (lines 1098-1104)
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)
}

A timestamp of the date and time that the intent was created.

A timestamp of the date and time that the intent was created.

Examples found in repository?
src/json_deser.rs (lines 1024-1029)
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)
}

Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.

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?
src/json_deser.rs (lines 1051-1053)
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)
}

Consumes the builder and constructs a CreateIntentOutput.

Examples found in repository?
src/operation_deser.rs (line 1007)
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()
    })
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more