public Volume withLifecycle(String lifecycle) {
        setLifecycle(lifecycle);
        return this;
    }
<p>
The lifecycle status of the volume.
</p>
<ul>
<li>
<p>
<code>AVAILABLE</code> - The volume is fully available for use.
</p>
</li>
<li>
<p>
<code>CREATED</code> - The volume has been created.
</p>
</li>
<li>
<p>
<code>CREATING</code> - Amazon FSx is creating the new volume.
</p>
</li>
<li>
<p>
<code>DELETING</code> - Amazon FSx is deleting an existing volume.
</p>
</li>
<li>
<p>
<code>FAILED</code> - Amazon FSx was unable to create the volume.
</p>
</li>
<li>
<p>
<code>MISCONFIGURED</code> - The volume is in a failed but recoverable state.
</p>
</li>
<li>
<p>
<code>PENDING</code> - Amazon FSx hasn't started creating the volume.
</p>
</li>
</ul>

@param lifecycle
       The lifecycle status of the volume.</p>
       <ul>
       <li>
       <p>
       <code>AVAILABLE</code> - The volume is fully available for use.
       </p>
       </li>
       <li>
       <p>
       <code>CREATED</code> - The volume has been created.
       </p>
       </li>
       <li>
       <p>
       <code>CREATING</code> - Amazon FSx is creating the new volume.
       </p>
       </li>
       <li>
       <p>
       <code>DELETING</code> - Amazon FSx is deleting an existing volume.
       </p>
       </li>
       <li>
       <p>
       <code>FAILED</code> - Amazon FSx was unable to create the volume.
       </p>
       </li>
       <li>
       <p>
       <code>MISCONFIGURED</code> - The volume is in a failed but recoverable state.
       </p>
       </li>
       <li>
       <p>
       <code>PENDING</code> - Amazon FSx hasn't started creating the volume.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see VolumeLifecycle
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/Volume.java