Class DataStreamMappings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataStreamMappings.Builder>
co.elastic.clients.elasticsearch.indices.get_data_stream_mappings.DataStreamMappings.Builder
- All Implemented Interfaces:
WithJson<DataStreamMappings.Builder>,ObjectBuilder<DataStreamMappings>
- Enclosing class:
- DataStreamMappings
public static class DataStreamMappings.Builder
extends WithJsonObjectBuilderBase<DataStreamMappings.Builder>
implements ObjectBuilder<DataStreamMappings>
Builder for
DataStreamMappings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDataStreamMappings.effectiveMappings(TypeMapping 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.mappings(TypeMapping value) Required - The settings specific to this data streamRequired - The settings specific to this data streamRequired - The name of the data stream.protected DataStreamMappings.Builderself()Methods 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 -
mappings
Required - The settings specific to this data streamAPI name:
mappings -
mappings
public final DataStreamMappings.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) Required - The settings specific to this data streamAPI name:
mappings -
effectiveMappings
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_mappings -
effectiveMappings
public final DataStreamMappings.Builder effectiveMappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> 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_mappings -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataStreamMappings.Builder>
-
build
Builds aDataStreamMappings.- Specified by:
buildin interfaceObjectBuilder<DataStreamMappings>- Throws:
NullPointerException- if some of the required fields are null.
-