aws_sdk_qbusiness/client/list_indices.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ListIndices`](crate::operation::list_indices::builders::ListIndicesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_indices::builders::ListIndicesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`application_id(impl Into<String>)`](crate::operation::list_indices::builders::ListIndicesFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::list_indices::builders::ListIndicesFluentBuilder::set_application_id):<br>required: **true**<br><p>The identifier of the Amazon Q Business application connected to the index.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_indices::builders::ListIndicesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_indices::builders::ListIndicesFluentBuilder::set_next_token):<br>required: **false**<br><p>If the maxResults response was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business indices.</p><br>
9 /// - [`max_results(i32)`](crate::operation::list_indices::builders::ListIndicesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_indices::builders::ListIndicesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of indices to return.</p><br>
10 /// - On success, responds with [`ListIndicesOutput`](crate::operation::list_indices::ListIndicesOutput) with field(s):
11 /// - [`next_token(Option<String>)`](crate::operation::list_indices::ListIndicesOutput::next_token): <p>If the response is truncated, Amazon Q Business returns this token that you can use in the subsequent request to retrieve the next set of indexes.</p>
12 /// - [`indices(Option<Vec::<Index>>)`](crate::operation::list_indices::ListIndicesOutput::indices): <p>An array of information on the items in one or more indexes.</p>
13 /// - On failure, responds with [`SdkError<ListIndicesError>`](crate::operation::list_indices::ListIndicesError)
14 pub fn list_indices(&self) -> crate::operation::list_indices::builders::ListIndicesFluentBuilder {
15 crate::operation::list_indices::builders::ListIndicesFluentBuilder::new(self.handle.clone())
16 }
17}