aws-sdk-qconnect 1.123.0

AWS SDK for Amazon Q Connect
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListModels`](crate::operation::list_models::builders::ListModelsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_models::builders::ListModelsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`assistant_id(impl Into<String>)`](crate::operation::list_models::builders::ListModelsFluentBuilder::assistant_id) / [`set_assistant_id(Option<String>)`](crate::operation::list_models::builders::ListModelsFluentBuilder::set_assistant_id):<br>required: **true**<br><p>The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN. The assistant's region determines which models are available.</p><br>
    ///   - [`ai_prompt_type(AiPromptType)`](crate::operation::list_models::builders::ListModelsFluentBuilder::ai_prompt_type) / [`set_ai_prompt_type(Option<AiPromptType>)`](crate::operation::list_models::builders::ListModelsFluentBuilder::set_ai_prompt_type):<br>required: **false**<br><p>The type of the AI Prompt to filter models by. When specified, only models that support the given AI Prompt type are returned.</p><br>
    ///   - [`model_lifecycle(ModelLifecycle)`](crate::operation::list_models::builders::ListModelsFluentBuilder::model_lifecycle) / [`set_model_lifecycle(Option<ModelLifecycle>)`](crate::operation::list_models::builders::ListModelsFluentBuilder::set_model_lifecycle):<br>required: **false**<br><p>The lifecycle status of models to filter by. When specified, only models with the given lifecycle status are returned.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_models::builders::ListModelsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_models::builders::ListModelsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_models::builders::ListModelsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_models::builders::ListModelsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
    /// - On success, responds with [`ListModelsOutput`](crate::operation::list_models::ListModelsOutput) with field(s):
    ///   - [`model_summaries(Vec::<ModelSummary>)`](crate::operation::list_models::ListModelsOutput::model_summaries): <p>The summaries of the models available to the assistant.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_models::ListModelsOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
    /// - On failure, responds with [`SdkError<ListModelsError>`](crate::operation::list_models::ListModelsError)
    pub fn list_models(&self) -> crate::operation::list_models::builders::ListModelsFluentBuilder {
        crate::operation::list_models::builders::ListModelsFluentBuilder::new(self.handle.clone())
    }
}