Class DataStreamSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataStreamSettings.Builder>
co.elastic.clients.elasticsearch.indices.get_data_stream_settings.DataStreamSettings.Builder
- All Implemented Interfaces:
WithJson<DataStreamSettings.Builder>,ObjectBuilder<DataStreamSettings>
- Enclosing class:
- DataStreamSettings
public static class DataStreamSettings.Builder
extends WithJsonObjectBuilderBase<DataStreamSettings.Builder>
implements ObjectBuilder<DataStreamSettings>
Builder for
DataStreamSettings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDataStreamSettings.effectiveSettings(IndexSettings value) Required - The settings specific to this data stream merged with the settings from its template.Required - The settings specific to this data stream merged with the settings from its template.Required - The name of the data stream.protected DataStreamSettings.Builderself()settings(IndexSettings value) Required - The settings specific to this data streamRequired - The settings specific to this data streamMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Required - The name of the data stream.API name:
name -
settings
Required - The settings specific to this data streamAPI name:
settings -
settings
public final DataStreamSettings.Builder settings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) Required - The settings specific to this data streamAPI name:
settings -
effectiveSettings
Required - The settings specific to this data stream merged with the settings from its template. Theseeffective_settingsare the settings that will be used when a new index is created for this data stream.API name:
effective_settings -
effectiveSettings
public final DataStreamSettings.Builder effectiveSettings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) Required - The settings specific to this data stream merged with the settings from its template. Theseeffective_settingsare the settings that will be used when a new index is created for this data stream.API name:
effective_settings -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataStreamSettings.Builder>
-
build
Builds aDataStreamSettings.- Specified by:
buildin interfaceObjectBuilder<DataStreamSettings>- Throws:
NullPointerException- if some of the required fields are null.
-