1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListPreparedStatements`](crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`work_group(impl Into<String>)`](crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder::work_group) / [`set_work_group(Option<String>)`](crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder::set_work_group):<br>required: **true**<br><p>The workgroup to list the prepared statements for.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in this request.</p><br>
    /// - On success, responds with [`ListPreparedStatementsOutput`](crate::operation::list_prepared_statements::ListPreparedStatementsOutput) with field(s):
    ///   - [`prepared_statements(Option<Vec::<PreparedStatementSummary>>)`](crate::operation::list_prepared_statements::ListPreparedStatementsOutput::prepared_statements): <p>The list of prepared statements for the workgroup.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_prepared_statements::ListPreparedStatementsOutput::next_token): <p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p>
    /// - On failure, responds with [`SdkError<ListPreparedStatementsError>`](crate::operation::list_prepared_statements::ListPreparedStatementsError)
    pub fn list_prepared_statements(&self) -> crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder {
        crate::operation::list_prepared_statements::builders::ListPreparedStatementsFluentBuilder::new(self.handle.clone())
    }
}