1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListTables`](crate::operation::list_tables::builders::ListTablesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_tables::builders::ListTablesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`cluster_identifier(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::cluster_identifier) / [`set_cluster_identifier(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_cluster_identifier):<br>required: **false**<br><p>The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. </p><br>
    ///   - [`secret_arn(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::secret_arn) / [`set_secret_arn(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_secret_arn):<br>required: **false**<br><p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. </p><br>
    ///   - [`db_user(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::db_user) / [`set_db_user(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_db_user):<br>required: **false**<br><p>The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. </p><br>
    ///   - [`database(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::database) / [`set_database(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_database):<br>required: **true**<br><p>The name of the database that contains the tables to list. If <code>ConnectedDatabase</code> is not specified, this is also the database to connect to with your authentication credentials.</p><br>
    ///   - [`connected_database(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::connected_database) / [`set_connected_database(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_connected_database):<br>required: **false**<br><p>A database name. The connected database is specified when you connect with your authentication credentials. </p><br>
    ///   - [`schema_pattern(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::schema_pattern) / [`set_schema_pattern(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_schema_pattern):<br>required: **false**<br><p>A pattern to filter results by schema name. Within a schema pattern, "%" means match any substring of 0 or more characters and "_" means match any one character. Only schema name entries matching the search pattern are returned. If <code>SchemaPattern</code> is not specified, then all tables that match <code>TablePattern</code> are returned. If neither <code>SchemaPattern</code> or <code>TablePattern</code> are specified, then all tables are returned. </p><br>
    ///   - [`table_pattern(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::table_pattern) / [`set_table_pattern(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_table_pattern):<br>required: **false**<br><p>A pattern to filter results by table name. Within a table pattern, "%" means match any substring of 0 or more characters and "_" means match any one character. Only table name entries matching the search pattern are returned. If <code>TablePattern</code> is not specified, then all tables that match <code>SchemaPattern</code>are returned. If neither <code>SchemaPattern</code> or <code>TablePattern</code> are specified, then all tables are returned. </p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_next_token):<br>required: **false**<br><p>A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request. </p><br>
    ///   - [`max_results(i32)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of tables to return in the response. If more tables exist than fit in one response, then <code>NextToken</code> is returned to page through the results. </p><br>
    ///   - [`workgroup_name(impl Into<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::workgroup_name) / [`set_workgroup_name(Option<String>)`](crate::operation::list_tables::builders::ListTablesFluentBuilder::set_workgroup_name):<br>required: **false**<br><p>The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p><br>
    /// - On success, responds with [`ListTablesOutput`](crate::operation::list_tables::ListTablesOutput) with field(s):
    ///   - [`tables(Option<Vec::<TableMember>>)`](crate::operation::list_tables::ListTablesOutput::tables): <p>The tables that match the request pattern. </p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_tables::ListTablesOutput::next_token): <p>A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request. </p>
    /// - On failure, responds with [`SdkError<ListTablesError>`](crate::operation::list_tables::ListTablesError)
    pub fn list_tables(&self) -> crate::operation::list_tables::builders::ListTablesFluentBuilder {
        crate::operation::list_tables::builders::ListTablesFluentBuilder::new(self.handle.clone())
    }
}