public GetDashboardEmbedUrlRequest withStatePersistenceEnabled(Boolean statePersistenceEnabled) {
        setStatePersistenceEnabled(statePersistenceEnabled);
        return this;
    }
<p>
Adds persistence of state for the user session in an embedded dashboard. Persistence applies to the sheet and the
parameter settings. These are control settings that the dashboard subscriber (Amazon QuickSight reader) chooses
while viewing the dashboard. If this is set to <code>TRUE</code>, the settings are the same when the subscriber
reopens the same dashboard URL. The state is stored in Amazon QuickSight, not in a browser cookie. If this is set
to FALSE, the state of the user session is not persisted. The default is <code>FALSE</code>.
</p>

@param statePersistenceEnabled
       Adds persistence of state for the user session in an embedded dashboard. Persistence applies to the sheet
       and the parameter settings. These are control settings that the dashboard subscriber (Amazon QuickSight
       reader) chooses while viewing the dashboard. If this is set to <code>TRUE</code>, the settings are the
       same when the subscriber reopens the same dashboard URL. The state is stored in Amazon QuickSight, not in
       a browser cookie. If this is set to FALSE, the state of the user session is not persisted. The default is
       <code>FALSE</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/GetDashboardEmbedUrlRequest.java