public NameServersUpdateState withCode(String code) {
        setCode(code);
        return this;
    }
<p>
The status code for the name servers update.
</p>
<p>
Following are the possible values:
</p>
<ul>
<li>
<p>
<code>SUCCEEDED</code> - The name server records were successfully updated.
</p>
</li>
<li>
<p>
<code>PENDING</code> - The name server record update is in progress.
</p>
</li>
<li>
<p>
<code>FAILED</code> - The name server record update failed.
</p>
</li>
<li>
<p>
<code>STARTED</code> - The automatic name server record update started.
</p>
</li>
</ul>

@param code
       The status code for the name servers update.</p>
       <p>
       Following are the possible values:
       </p>
       <ul>
       <li>
       <p>
       <code>SUCCEEDED</code> - The name server records were successfully updated.
       </p>
       </li>
       <li>
       <p>
       <code>PENDING</code> - The name server record update is in progress.
       </p>
       </li>
       <li>
       <p>
       <code>FAILED</code> - The name server record update failed.
       </p>
       </li>
       <li>
       <p>
       <code>STARTED</code> - The automatic name server record update started.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see NameServersUpdateStateCode
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/NameServersUpdateState.java