Class Template.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.simulate_template.Template.Builder
-
- All Implemented Interfaces:
ObjectBuilder<Template>
- Enclosing class:
- Template
public static class Template.Builder extends ObjectBuilderBase implements ObjectBuilder<Template>
Builder forTemplate
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Template.Builder
aliases(java.lang.String key, java.util.function.Function<Alias.Builder,ObjectBuilder<Alias>> fn)
Required - API name:aliases
Template.Builder
aliases(java.lang.String key, Alias value)
Required - API name:aliases
Template.Builder
aliases(java.util.Map<java.lang.String,Alias> map)
Required - API name:aliases
Template
build()
Builds aTemplate
.Template.Builder
mappings(java.util.function.Function<TypeMapping.Builder,ObjectBuilder<TypeMapping>> fn)
Required - API name:mappings
Template.Builder
mappings(TypeMapping value)
Required - API name:mappings
Template.Builder
overlapping(java.util.function.Function<Overlapping.Builder,ObjectBuilder<Overlapping>> fn)
Required - API name:overlapping
Template.Builder
overlapping(java.util.List<Overlapping> list)
Required - API name:overlapping
Template.Builder
overlapping(Overlapping value, Overlapping... values)
Required - API name:overlapping
Template.Builder
settings(java.lang.String key, JsonData value)
Required - API name:settings
Template.Builder
settings(java.util.Map<java.lang.String,JsonData> map)
Required - API name:settings
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
aliases
public final Template.Builder aliases(java.util.Map<java.lang.String,Alias> map)
Required - API name:aliases
Adds all entries of
map
toaliases
.
-
aliases
public final Template.Builder aliases(java.lang.String key, Alias value)
Required - API name:aliases
Adds an entry to
aliases
.
-
aliases
public final Template.Builder aliases(java.lang.String key, java.util.function.Function<Alias.Builder,ObjectBuilder<Alias>> fn)
Required - API name:aliases
Adds an entry to
aliases
using a builder lambda.
-
mappings
public final Template.Builder mappings(TypeMapping value)
Required - API name:mappings
-
mappings
public final Template.Builder mappings(java.util.function.Function<TypeMapping.Builder,ObjectBuilder<TypeMapping>> fn)
Required - API name:mappings
-
settings
public final Template.Builder settings(java.util.Map<java.lang.String,JsonData> map)
Required - API name:settings
Adds all entries of
map
tosettings
.
-
settings
public final Template.Builder settings(java.lang.String key, JsonData value)
Required - API name:settings
Adds an entry to
settings
.
-
overlapping
public final Template.Builder overlapping(java.util.List<Overlapping> list)
Required - API name:overlapping
Adds all elements of
list
tooverlapping
.
-
overlapping
public final Template.Builder overlapping(Overlapping value, Overlapping... values)
Required - API name:overlapping
Adds one or more values to
overlapping
.
-
overlapping
public final Template.Builder overlapping(java.util.function.Function<Overlapping.Builder,ObjectBuilder<Overlapping>> fn)
Required - API name:overlapping
Adds a value to
overlapping
using a builder lambda.
-
build
public Template build()
Builds aTemplate
.- Specified by:
build
in interfaceObjectBuilder<Template>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-