public ListTablesRequest withSchemaPattern(String schemaPattern) {
        setSchemaPattern(schemaPattern);
        return this;
    }
<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>

@param schemaPattern
       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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshiftdataapi/src/main/java/com/amazonaws/services/redshiftdataapi/model/ListTablesRequest.java