public ModifyDBInstanceRequest withNewDBInstanceIdentifier(String newDBInstanceIdentifier) {
        setNewDBInstanceIdentifier(newDBInstanceIdentifier);
        return this;
    }
<p>
The new instance identifier for the instance when renaming an instance. When you change the instance identifier,
an instance reboot occurs immediately if you set <code>Apply Immediately</code> to <code>true</code>. It occurs
during the next maintenance window if you set <code>Apply Immediately</code> to <code>false</code>. This value is
stored as a lowercase string.
</p>
<p>
Constraints:
</p>
<ul>
<li>
<p>
Must contain from 1 to 63 letters, numbers, or hyphens.
</p>
</li>
<li>
<p>
The first character must be a letter.
</p>
</li>
<li>
<p>
Cannot end with a hyphen or contain two consecutive hyphens.
</p>
</li>
</ul>
<p>
Example: <code>mydbinstance</code>
</p>

@param newDBInstanceIdentifier
       The new instance identifier for the instance when renaming an instance. When you change the instance
       identifier, an instance reboot occurs immediately if you set <code>Apply Immediately</code> to
       <code>true</code>. It occurs during the next maintenance window if you set <code>Apply Immediately</code>
       to <code>false</code>. This value is stored as a lowercase string. </p>
       <p>
       Constraints:
       </p>
       <ul>
       <li>
       <p>
       Must contain from 1 to 63 letters, numbers, or hyphens.
       </p>
       </li>
       <li>
       <p>
       The first character must be a letter.
       </p>
       </li>
       <li>
       <p>
       Cannot end with a hyphen or contain two consecutive hyphens.
       </p>
       </li>
       </ul>
       <p>
       Example: <code>mydbinstance</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/ModifyDBInstanceRequest.java