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.Builder
self()
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
withJson
Methods 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_settings
are 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_settings
are the settings that will be used when a new index is created for this data stream.API name:
effective_settings
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DataStreamSettings.Builder>
-
build
Builds aDataStreamSettings
.- Specified by:
build
in interfaceObjectBuilder<DataStreamSettings>
- Throws:
NullPointerException
- if some of the required fields are null.
-