public GetSessionResult withActiveContexts(java.util.Collection<ActiveContext> activeContexts) {
        setActiveContexts(activeContexts);
        return this;
    }
<p>
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the
<code>PostContent</code>, <code>PostText</code>, or <code>PutSession</code> operation.
</p>
<p>
You can use a context to control the intents that can follow up an intent, or to modify the operation of your
application.
</p>

@param activeContexts
       A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling
       the <code>PostContent</code>, <code>PostText</code>, or <code>PutSession</code> operation.</p>
       <p>
       You can use a context to control the intents that can follow up an intent, or to modify the operation of
       your application.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lex/src/main/java/com/amazonaws/services/lexruntime/model/GetSessionResult.java