public GetClusterCredentialsRequest withDbName(String dbName) {
        setDbName(dbName);
        return this;
    }
<p>
The name of a database that <code>DbUser</code> is authorized to log on to. If <code>DbName</code> is not
specified, <code>DbUser</code> can log on to any existing database.
</p>
<p>
Constraints:
</p>
<ul>
<li>
<p>
Must be 1 to 64 alphanumeric characters or hyphens
</p>
</li>
<li>
<p>
Must contain uppercase or lowercase letters, numbers, underscore, plus sign, period (dot), at symbol (@), or
hyphen.
</p>
</li>
<li>
<p>
First character must be a letter.
</p>
</li>
<li>
<p>
Must not contain a colon ( : ) or slash ( / ).
</p>
</li>
<li>
<p>
Cannot be a reserved word. A list of reserved words can be found in <a
href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved Words</a> in the Amazon Redshift
Database Developer Guide.
</p>
</li>
</ul>

@param dbName
       The name of a database that <code>DbUser</code> is authorized to log on to. If <code>DbName</code> is not
       specified, <code>DbUser</code> can log on to any existing database.</p>
       <p>
       Constraints:
       </p>
       <ul>
       <li>
       <p>
       Must be 1 to 64 alphanumeric characters or hyphens
       </p>
       </li>
       <li>
       <p>
       Must contain uppercase or lowercase letters, numbers, underscore, plus sign, period (dot), at symbol (@),
       or hyphen.
       </p>
       </li>
       <li>
       <p>
       First character must be a letter.
       </p>
       </li>
       <li>
       <p>
       Must not contain a colon ( : ) or slash ( / ).
       </p>
       </li>
       <li>
       <p>
       Cannot be a reserved word. A list of reserved words can be found in <a
       href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved Words</a> in the Amazon
       Redshift Database Developer Guide.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/GetClusterCredentialsRequest.java