public void setMode(String mode) {
        this.mode = mode;
    }
<p>
Set the mode to <code>ENABLED</code> or <code>LEARN_ONLY</code>.
</p>
<p>
By default, Amazon Kendra enables query suggestions. <code>LEARN_ONLY</code> mode allows you to turn off query
suggestions. You can to update this at any time.
</p>
<p>
In <code>LEARN_ONLY</code> mode, Amazon Kendra continues to learn from new queries to keep suggestions up to date
for when you are ready to switch to ENABLED mode again.
</p>

@param mode
       Set the mode to <code>ENABLED</code> or <code>LEARN_ONLY</code>.</p>
       <p>
       By default, Amazon Kendra enables query suggestions. <code>LEARN_ONLY</code> mode allows you to turn off
       query suggestions. You can to update this at any time.
       </p>
       <p>
       In <code>LEARN_ONLY</code> mode, Amazon Kendra continues to learn from new queries to keep suggestions up
       to date for when you are ready to switch to ENABLED mode again.
@see Mode
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/UpdateQuerySuggestionsConfigRequest.java