public NaturalLanguageQueryGenerationOptionsOutput withDesiredState(String desiredState) {
        setDesiredState(desiredState);
        return this;
    }
<p>
The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.
</p>

@param desiredState
       The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.
@return Returns a reference to this object so that method calls can be chained together.
@see NaturalLanguageQueryGenerationDesiredState
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/NaturalLanguageQueryGenerationOptionsOutput.java