Class TemplatesRecord.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cat.templates.TemplatesRecord.Builder
-
- All Implemented Interfaces:
ObjectBuilder<TemplatesRecord>
- Enclosing class:
- TemplatesRecord
public static class TemplatesRecord.Builder extends ObjectBuilderBase implements ObjectBuilder<TemplatesRecord>
Builder forTemplatesRecord
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplatesRecord
build()
Builds aTemplatesRecord
.TemplatesRecord.Builder
composedOf(java.lang.String value)
component templates comprising index templateTemplatesRecord.Builder
indexPatterns(java.lang.String value)
template index patternsTemplatesRecord.Builder
name(java.lang.String value)
template nameTemplatesRecord.Builder
order(java.lang.String value)
template application order/priority numberTemplatesRecord.Builder
version(java.lang.String value)
version-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
name
public final TemplatesRecord.Builder name(@Nullable java.lang.String value)
template nameAPI name:
name
-
indexPatterns
public final TemplatesRecord.Builder indexPatterns(@Nullable java.lang.String value)
template index patternsAPI name:
index_patterns
-
order
public final TemplatesRecord.Builder order(@Nullable java.lang.String value)
template application order/priority numberAPI name:
order
-
version
public final TemplatesRecord.Builder version(@Nullable java.lang.String value)
versionAPI name:
version
-
composedOf
public final TemplatesRecord.Builder composedOf(@Nullable java.lang.String value)
component templates comprising index templateAPI name:
composed_of
-
build
public TemplatesRecord build()
Builds aTemplatesRecord
.- Specified by:
build
in interfaceObjectBuilder<TemplatesRecord>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-