public DataSource withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig) {
        setElasticsearchConfig(elasticsearchConfig);
        return this;
    }
<p>
Amazon OpenSearch Service settings.
</p>

@param elasticsearchConfig
       Amazon OpenSearch Service settings.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appsync/src/main/java/com/amazonaws/services/appsync/model/DataSource.java