public StreamConfiguration withSessionPersistenceMode(SessionPersistenceMode sessionPersistenceMode) {
        this.sessionPersistenceMode = sessionPersistenceMode.toString();
        return this;
    }
<p>
Determine if a streaming session created from this launch profile can configure persistent storage. This means
that <code>volumeConfiguration</code> and <code>automaticTerminationMode</code> are configured.
</p>

@param sessionPersistenceMode
       Determine if a streaming session created from this launch profile can configure persistent storage. This
       means that <code>volumeConfiguration</code> and <code>automaticTerminationMode</code> are configured.
@return Returns a reference to this object so that method calls can be chained together.
@see SessionPersistenceMode
aws-java-sdk-nimblestudio/src/main/java/com/amazonaws/services/nimblestudio/model/StreamConfiguration.java