Class PutTemplateRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<PutTemplateRequest.Builder,,PutTemplateRequest> MutableBuilder<PutTemplateRequest.Builder,,PutTemplateRequest> ObjectBuilder<PutTemplateRequest>
- Enclosing class:
PutTemplateRequest
PutTemplateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) Aliases for the index.Aliases for the index.Aliases for the index.build()Builds aPutTemplateRequest.Operation timeout for connection to cluster-manager node.clusterManagerTimeout(Time value) Operation timeout for connection to cluster-manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.Iftrue, this request cannot replace or update existing index templates.indexPatterns(String value, String... values) Array of wildcard expressions used to match the names of indexes during creation.indexPatterns(List<String> list) Array of wildcard expressions used to match the names of indexes during creation.API name:mappingsmappings(TypeMapping value) API name:mappingsDeprecated.masterTimeout(Time value) Deprecated.Required - The name of the templateOrder in which OpenSearch applies this template if index matches multiple templates.protected PutTemplateRequest.Builderself()Configuration options for the index.Configuration options for the index.API 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<PutTemplateRequest.Builder,PutTemplateRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutTemplateRequest.Builder>
-
aliases
Aliases for the index.API name:
aliasesAdds all elements of
maptoaliases. -
aliases
Aliases for the index.API name:
aliasesAdds an entry to
aliases. -
aliases
@Nonnull public final PutTemplateRequest.Builder aliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) Aliases for the index.API name:
aliasesAdds a value to
aliasesusing a builder lambda. -
clusterManagerTimeout
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
clusterManagerTimeout
@Nonnull public final PutTemplateRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
create
Iftrue, this request cannot replace or update existing index templates.API name:
create -
indexPatterns
Array of wildcard expressions used to match the names of indexes during creation.API name:
index_patternsAdds all elements of
listtoindexPatterns. -
indexPatterns
Array of wildcard expressions used to match the names of indexes during creation.API name:
index_patternsAdds one or more values to
indexPatterns. -
mappings
API name:mappings -
mappings
@Nonnull public final PutTemplateRequest.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) API name:mappings -
masterTimeout
Deprecated.Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
masterTimeout
@Deprecated @Nonnull public final PutTemplateRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
name
Required - The name of the templateAPI name:
name -
order
Order in which OpenSearch applies this template if index matches multiple templates.
Templates with lower 'order' values are merged first. Templates with higher 'order' values are merged later, overriding templates with lower values.
API name:
order -
settings
Configuration options for the index.API name:
settingsAdds all elements of
maptosettings. -
settings
Configuration options for the index.API name:
settingsAdds an entry to
settings. -
version
API name:version -
build
Builds aPutTemplateRequest.- Specified by:
buildin interfaceObjectBuilder<PutTemplateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-