Class PutIndexTemplateRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<PutIndexTemplateRequest.Builder>
org.opensearch.client.opensearch.indices.PutIndexTemplateRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<PutIndexTemplateRequest.Builder,,PutIndexTemplateRequest> MutableBuilder<PutIndexTemplateRequest.Builder,,PutIndexTemplateRequest> ObjectBuilder<PutIndexTemplateRequest>
- Enclosing class:
PutIndexTemplateRequest
public static class PutIndexTemplateRequest.Builder
extends RequestBase.AbstractBuilder<PutIndexTemplateRequest.Builder>
implements CopyableBuilder<PutIndexTemplateRequest.Builder,PutIndexTemplateRequest>
Builder for
PutIndexTemplateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutIndexTemplateRequest.User defined reason for creating/updating the index template.Operation timeout for connection to cluster-manager node.clusterManagerTimeout(Time value) Operation timeout for connection to cluster-manager node.composedOf(String value, String... values) An ordered list of component template names.composedOf(List<String> list) An ordered list of component template names.copy()Create a new builderCopyableBuilderthat is a copy of this one.Iftrue, this request cannot replace or update existing index templates.dataStream(Function<IndexTemplateDataStreamConfiguration.Builder, ObjectBuilder<IndexTemplateDataStreamConfiguration>> fn) API name:data_streamAPI name:data_streamindexPatterns(String value, String... values) API name:index_patternsindexPatterns(List<String> list) API name:index_patternsDeprecated.masterTimeout(Time value) Deprecated.API name:_metaAPI name:_metaRequired - Index or template namePriority to determine index template precedence when a new data stream or index is created.protected PutIndexTemplateRequest.Builderself()API name:templatetemplate(IndexTemplateMapping value) API name:templateAPI name:versionMethods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<PutIndexTemplateRequest.Builder,PutIndexTemplateRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutIndexTemplateRequest.Builder>
-
cause
User defined reason for creating/updating the index template.API name:
cause -
clusterManagerTimeout
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
clusterManagerTimeout
@Nonnull public final PutIndexTemplateRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
composedOf
An ordered list of component template names. Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.API name:
composed_ofAdds all elements of
listtocomposedOf. -
composedOf
An ordered list of component template names. Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.API name:
composed_ofAdds one or more values to
composedOf. -
create
Iftrue, this request cannot replace or update existing index templates.API name:
create -
dataStream
@Nonnull public final PutIndexTemplateRequest.Builder dataStream(@Nullable IndexTemplateDataStreamConfiguration value) API name:data_stream -
dataStream
@Nonnull public final PutIndexTemplateRequest.Builder dataStream(Function<IndexTemplateDataStreamConfiguration.Builder, ObjectBuilder<IndexTemplateDataStreamConfiguration>> fn) API name:data_stream -
indexPatterns
API name:index_patternsAdds all elements of
listtoindexPatterns. -
indexPatterns
API name:index_patternsAdds one or more values to
indexPatterns. -
masterTimeout
@Deprecated @Nonnull public final PutIndexTemplateRequest.Builder masterTimeout(@Nullable Time value) Deprecated.Operation timeout for connection to cluster-manager node.API name:
master_timeout -
masterTimeout
@Deprecated @Nonnull public final PutIndexTemplateRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.Operation timeout for connection to cluster-manager node.API name:
master_timeout -
meta
API name:_metaAdds all elements of
maptometa. -
meta
API name:_metaAdds an entry to
meta. -
name
Required - Index or template nameAPI name:
name -
priority
Priority to determine index template precedence when a new data stream or index is created. The index template with the highest priority is chosen. If no priority is specified the template is treated as though it is of priority 0 (lowest priority). This number is not automatically generated by OpenSearch.API name:
priority -
template
@Nonnull public final PutIndexTemplateRequest.Builder template(@Nullable IndexTemplateMapping value) API name:template -
template
@Nonnull public final PutIndexTemplateRequest.Builder template(Function<IndexTemplateMapping.Builder, ObjectBuilder<IndexTemplateMapping>> fn) API name:template -
version
API name:version -
build
Builds aPutIndexTemplateRequest.- Specified by:
buildin interfaceObjectBuilder<PutIndexTemplateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-