Class TemplatesRecord.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TemplatesRecord.Builder>
co.elastic.clients.elasticsearch.cat.templates.TemplatesRecord.Builder
- All Implemented Interfaces:
WithJson<TemplatesRecord.Builder>,ObjectBuilder<TemplatesRecord>
- Enclosing class:
- TemplatesRecord
public static class TemplatesRecord.Builder
extends WithJsonObjectBuilderBase<TemplatesRecord.Builder>
implements ObjectBuilder<TemplatesRecord>
Builder for
TemplatesRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTemplatesRecord.final TemplatesRecord.BuildercomposedOf(String value) The component templates that comprise the index template.final TemplatesRecord.BuilderindexPatterns(String value) The template index patterns.final TemplatesRecord.BuilderThe template name.final TemplatesRecord.BuilderThe template application order or priority number.protected TemplatesRecord.Builderself()final TemplatesRecord.BuilderThe template version.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
The template name.API name:
name -
indexPatterns
The template index patterns.API name:
index_patterns -
order
The template application order or priority number.API name:
order -
version
The template version.API name:
version -
composedOf
The component templates that comprise the index template.API name:
composed_of -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TemplatesRecord.Builder>
-
build
Builds aTemplatesRecord.- Specified by:
buildin interfaceObjectBuilder<TemplatesRecord>- Throws:
NullPointerException- if some of the required fields are null.
-