Class IndexTemplateMapping.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexTemplateMapping.Builder>
co.elastic.clients.elasticsearch.indices.put_index_template.IndexTemplateMapping.Builder
- All Implemented Interfaces:
WithJson<IndexTemplateMapping.Builder>
,ObjectBuilder<IndexTemplateMapping>
- Enclosing class:
- IndexTemplateMapping
public static class IndexTemplateMapping.Builder
extends WithJsonObjectBuilderBase<IndexTemplateMapping.Builder>
implements ObjectBuilder<IndexTemplateMapping>
Builder for
IndexTemplateMapping
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAPI name:aliases
aliases
(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) API name:aliases
API name:aliases
build()
Builds aIndexTemplateMapping
.mappings
(TypeMapping value) API name:mappings
API name:mappings
protected IndexTemplateMapping.Builder
self()
settings
(IndexSettings value) API name:settings
API name:settings
Methods 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
-
aliases
API name:aliases
Adds all entries of
map
toaliases
. -
aliases
API name:aliases
Adds an entry to
aliases
. -
aliases
public final IndexTemplateMapping.Builder aliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) API name:aliases
Adds an entry to
aliases
using a builder lambda. -
mappings
API name:mappings
-
mappings
public final IndexTemplateMapping.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) API name:mappings
-
settings
API name:settings
-
settings
public final IndexTemplateMapping.Builder settings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) API name:settings
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<IndexTemplateMapping.Builder>
-
build
Builds aIndexTemplateMapping
.- Specified by:
build
in interfaceObjectBuilder<IndexTemplateMapping>
- Throws:
NullPointerException
- if some of the required fields are null.
-