public R53HostedZoneDeletionState withCode(R53HostedZoneDeletionStateCode code) {
        this.code = code.toString();
        return this;
    }
<p>
The status code for the deletion state.
</p>
<p>
Following are the possible values:
</p>
<ul>
<li>
<p>
<code>SUCCEEDED</code> - The hosted zone was successfully deleted.
</p>
</li>
<li>
<p>
<code>PENDING</code> - The hosted zone deletion is in progress.
</p>
</li>
<li>
<p>
<code>FAILED</code> - The hosted zone deletion failed.
</p>
</li>
<li>
<p>
<code>STARTED</code> - The hosted zone deletion started.
</p>
</li>
</ul>

@param code
       The status code for the deletion state.</p>
       <p>
       Following are the possible values:
       </p>
       <ul>
       <li>
       <p>
       <code>SUCCEEDED</code> - The hosted zone was successfully deleted.
       </p>
       </li>
       <li>
       <p>
       <code>PENDING</code> - The hosted zone deletion is in progress.
       </p>
       </li>
       <li>
       <p>
       <code>FAILED</code> - The hosted zone deletion failed.
       </p>
       </li>
       <li>
       <p>
       <code>STARTED</code> - The hosted zone deletion started.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see R53HostedZoneDeletionStateCode
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/R53HostedZoneDeletionState.java