public StreamConfiguration withAutomaticTerminationMode(AutomaticTerminationMode automaticTerminationMode) {
        this.automaticTerminationMode = automaticTerminationMode.toString();
        return this;
    }
<p>
Indicates if a streaming session created from this launch profile should be terminated automatically or retained
without termination after being in a <code>STOPPED</code> state.
</p>
<ul>
<li>
<p>
When <code>ACTIVATED</code>, the streaming session is scheduled for termination after being in the
<code>STOPPED</code> state for the time specified in <code>maxStoppedSessionLengthInMinutes</code>.
</p>
</li>
<li>
<p>
When <code>DEACTIVATED</code>, the streaming session can remain in the <code>STOPPED</code> state indefinitely.
</p>
</li>
</ul>
<p>
This parameter is only allowed when <code>sessionPersistenceMode</code> is <code>ACTIVATED</code>. When allowed,
the default value for this parameter is <code>DEACTIVATED</code>.
</p>

@param automaticTerminationMode
       Indicates if a streaming session created from this launch profile should be terminated automatically or
       retained without termination after being in a <code>STOPPED</code> state.</p>
       <ul>
       <li>
       <p>
       When <code>ACTIVATED</code>, the streaming session is scheduled for termination after being in the
       <code>STOPPED</code> state for the time specified in <code>maxStoppedSessionLengthInMinutes</code>.
       </p>
       </li>
       <li>
       <p>
       When <code>DEACTIVATED</code>, the streaming session can remain in the <code>STOPPED</code> state
       indefinitely.
       </p>
       </li>
       </ul>
       <p>
       This parameter is only allowed when <code>sessionPersistenceMode</code> is <code>ACTIVATED</code>. When
       allowed, the default value for this parameter is <code>DEACTIVATED</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see AutomaticTerminationMode
aws-java-sdk-nimblestudio/src/main/java/com/amazonaws/services/nimblestudio/model/StreamConfiguration.java