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

A builder for UpdateIntentOutput.

Implementations§

The identifier of the intent that was updated.

The identifier of the intent that was updated.

Examples found in repository?
src/json_deser.rs (lines 5910-5916)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The updated name of the intent.

The updated name of the intent.

Examples found in repository?
src/json_deser.rs (lines 5919-5925)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The updated description of the intent.

The updated description of the intent.

Examples found in repository?
src/json_deser.rs (lines 5869-5875)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The updated built-in intent that is the parent of this intent.

The updated built-in intent that is the parent of this intent.

Examples found in repository?
src/json_deser.rs (lines 5957-5963)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Appends an item to sample_utterances.

To override the contents of this collection use set_sample_utterances.

The updated list of sample utterances for the intent.

The updated list of sample utterances for the intent.

Examples found in repository?
src/json_deser.rs (lines 5966-5968)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The updated Lambda function called during each turn of the conversation with the user.

The updated Lambda function called during each turn of the conversation with the user.

Examples found in repository?
src/json_deser.rs (lines 5878-5880)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The updated Lambda function called when the intent is ready for fulfillment.

The updated Lambda function called when the intent is ready for fulfillment.

Examples found in repository?
src/json_deser.rs (lines 5883-5885)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Appends an item to slot_priorities.

To override the contents of this collection use set_slot_priorities.

The updated list of slots and their priorities that are elicited from the user for the intent.

The updated list of slots and their priorities that are elicited from the user for the intent.

Examples found in repository?
src/json_deser.rs (lines 5971-5973)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The updated prompts that Amazon Lex sends to the user to confirm the completion of an intent.

The updated prompts that Amazon Lex sends to the user to confirm the completion of an intent.

Examples found in repository?
src/json_deser.rs (lines 5905-5907)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The updated response that Amazon Lex sends the user when the intent is closed.

The updated response that Amazon Lex sends the user when the intent is closed.

Examples found in repository?
src/json_deser.rs (lines 5898-5902)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Appends an item to input_contexts.

To override the contents of this collection use set_input_contexts.

The updated list of contexts that must be active for the intent to be considered by Amazon Lex.

The updated list of contexts that must be active for the intent to be considered by Amazon Lex.

Examples found in repository?
src/json_deser.rs (lines 5893-5895)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Appends an item to output_contexts.

To override the contents of this collection use set_output_contexts.

The updated list of contexts that Amazon Lex activates when the intent is fulfilled.

The updated list of contexts that Amazon Lex activates when the intent is fulfilled.

Examples found in repository?
src/json_deser.rs (lines 5952-5954)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The updated configuration for connecting to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

The updated configuration for connecting to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

Examples found in repository?
src/json_deser.rs (lines 5928-5932)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The identifier of the bot that contains the intent.

The identifier of the bot that contains the intent.

Examples found in repository?
src/json_deser.rs (lines 5843-5849)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The version of the bot that contains the intent. Will always be DRAFT.

The version of the bot that contains the intent. Will always be DRAFT.

Examples found in repository?
src/json_deser.rs (lines 5852-5858)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

The updated language and locale of the intent.

The updated language and locale of the intent.

Examples found in repository?
src/json_deser.rs (lines 5943-5949)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

A timestamp of when the intent was created.

A timestamp of when the intent was created.

Examples found in repository?
src/json_deser.rs (lines 5861-5866)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

A timestamp of the last time that the intent was modified.

A timestamp of the last time that the intent was modified.

Examples found in repository?
src/json_deser.rs (lines 5935-5940)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Examples found in repository?
src/json_deser.rs (lines 5888-5890)
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
pub(crate) fn deser_operation_crate_operation_update_intent(
    value: &[u8],
    mut builder: crate::output::update_intent_output::Builder,
) -> Result<
    crate::output::update_intent_output::Builder,
    aws_smithy_json::deserialize::error::DeserializeError,
> {
    let mut tokens_owned =
        aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
            .peekable();
    let tokens = &mut tokens_owned;
    aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    loop {
        match tokens.next().transpose()? {
            Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
            Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                match key.to_unescaped()?.as_ref() {
                    "botId" => {
                        builder = builder.set_bot_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "botVersion" => {
                        builder = builder.set_bot_version(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "creationDateTime" => {
                        builder = builder.set_creation_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "description" => {
                        builder = builder.set_description(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "dialogCodeHook" => {
                        builder = builder.set_dialog_code_hook(
                            crate::json_deser::deser_structure_crate_model_dialog_code_hook_settings(tokens)?
                        );
                    }
                    "fulfillmentCodeHook" => {
                        builder = builder.set_fulfillment_code_hook(
                            crate::json_deser::deser_structure_crate_model_fulfillment_code_hook_settings(tokens)?
                        );
                    }
                    "initialResponseSetting" => {
                        builder = builder.set_initial_response_setting(
                            crate::json_deser::deser_structure_crate_model_initial_response_setting(tokens)?
                        );
                    }
                    "inputContexts" => {
                        builder = builder.set_input_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_input_contexts_list(tokens)?
                        );
                    }
                    "intentClosingSetting" => {
                        builder = builder.set_intent_closing_setting(
                            crate::json_deser::deser_structure_crate_model_intent_closing_setting(
                                tokens,
                            )?,
                        );
                    }
                    "intentConfirmationSetting" => {
                        builder = builder.set_intent_confirmation_setting(
                            crate::json_deser::deser_structure_crate_model_intent_confirmation_setting(tokens)?
                        );
                    }
                    "intentId" => {
                        builder = builder.set_intent_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "intentName" => {
                        builder = builder.set_intent_name(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "kendraConfiguration" => {
                        builder = builder.set_kendra_configuration(
                            crate::json_deser::deser_structure_crate_model_kendra_configuration(
                                tokens,
                            )?,
                        );
                    }
                    "lastUpdatedDateTime" => {
                        builder = builder.set_last_updated_date_time(
                            aws_smithy_json::deserialize::token::expect_timestamp_or_null(
                                tokens.next(),
                                aws_smithy_types::date_time::Format::EpochSeconds,
                            )?,
                        );
                    }
                    "localeId" => {
                        builder = builder.set_locale_id(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "outputContexts" => {
                        builder = builder.set_output_contexts(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_output_contexts_list(tokens)?
                        );
                    }
                    "parentIntentSignature" => {
                        builder = builder.set_parent_intent_signature(
                            aws_smithy_json::deserialize::token::expect_string_or_null(
                                tokens.next(),
                            )?
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                            .transpose()?,
                        );
                    }
                    "sampleUtterances" => {
                        builder = builder.set_sample_utterances(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_sample_utterances_list(tokens)?
                        );
                    }
                    "slotPriorities" => {
                        builder = builder.set_slot_priorities(
                            crate::json_deser::deser_list_com_amazonaws_lexmodelsv2_slot_priorities_list(tokens)?
                        );
                    }
                    _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                }
            }
            other => {
                return Err(
                    aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                        "expected object key or end object, found: {:?}",
                        other
                    )),
                )
            }
        }
    }
    if tokens.next().is_some() {
        return Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "found more JSON tokens after completing parsing",
            ),
        );
    }
    Ok(builder)
}

Consumes the builder and constructs a UpdateIntentOutput.

Examples found in repository?
src/operation_deser.rs (line 8235)
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
pub fn parse_update_intent_response(
    response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::UpdateIntentOutput, crate::error::UpdateIntentError> {
    Ok({
        #[allow(unused_mut)]
        let mut output = crate::output::update_intent_output::Builder::default();
        let _ = response;
        output = crate::json_deser::deser_operation_crate_operation_update_intent(
            response.body().as_ref(),
            output,
        )
        .map_err(crate::error::UpdateIntentError::unhandled)?;
        output.build()
    })
}

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