/** * <p> * Settings in JSON format for the target Elasticsearch endpoint. For more information about the available * settings, see <a href= * "http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration" * >Extra Connection Attributes When Using Elasticsearch as a Target for AWS DMS</a> in the <i>AWS Database * Migration User Guide.</i> * </p> * This is a convenience that creates an instance of the {@link ElasticsearchSettings.Builder} avoiding the need * to create one manually via {@link ElasticsearchSettings#builder()}. * * When the {@link Consumer} completes, {@link ElasticsearchSettings.Builder#build()} is called immediately and * its result is passed to {@link #elasticsearchSettings(ElasticsearchSettings)}. * * @param elasticsearchSettings * a consumer that will call methods on {@link ElasticsearchSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #elasticsearchSettings(ElasticsearchSettings) */ default Builder elasticsearchSettings(Consumer<ElasticsearchSettings.Builder> elasticsearchSettings) { return elasticsearchSettings(ElasticsearchSettings.builder().applyMutation(elasticsearchSettings).build()); }
/** * <p> * Settings in JSON format for the target Elasticsearch endpoint. For more information about the available * settings, see <a href= * "http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration" * >Extra Connection Attributes When Using Elasticsearch as a Target for AWS DMS</a> in the <i>AWS Database * Migration User Guide.</i> * </p> * This is a convenience that creates an instance of the {@link ElasticsearchSettings.Builder} avoiding the need * to create one manually via {@link ElasticsearchSettings#builder()}. * * When the {@link Consumer} completes, {@link ElasticsearchSettings.Builder#build()} is called immediately and * its result is passed to {@link #elasticsearchSettings(ElasticsearchSettings)}. * * @param elasticsearchSettings * a consumer that will call methods on {@link ElasticsearchSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #elasticsearchSettings(ElasticsearchSettings) */ default Builder elasticsearchSettings(Consumer<ElasticsearchSettings.Builder> elasticsearchSettings) { return elasticsearchSettings(ElasticsearchSettings.builder().applyMutation(elasticsearchSettings).build()); }