public RestoreVolumeFromSnapshotResult withLifecycle(VolumeLifecycle lifecycle) {
        this.lifecycle = lifecycle.toString();
        return this;
    }
<p>
The lifecycle state of the volume being restored.
</p>

@param lifecycle
       The lifecycle state of the volume being restored.
@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/RestoreVolumeFromSnapshotResult.java