Class PutTemplateRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.indices.PutTemplateRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<PutTemplateRequest.Builder,PutTemplateRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class PutTemplateRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<PutTemplateRequest.Builder,PutTemplateRequest>
Creates or updates an index template.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutTemplateRequest> Json deserializer forPutTemplateRequeststatic final Endpoint<PutTemplateRequest, PutTemplateResponse, ErrorResponse> Endpoint "indices.put_template". -
Method Summary
Modifier and TypeMethodDescriptionaliases()Aliases for the index.protected voidapplyQueryParameters(Map<String, String> params) static PutTemplateRequest.Builderbuilder()final TimeOperation timeout for connection to cluster-manager node.final Booleancreate()Iftrue, this request cannot replace or update existing index templates.booleaninthashCode()Array of wildcard expressions used to match the names of indexes during creation.final TypeMappingmappings()API name:mappingsfinal TimeDeprecated.final Stringname()Required - The name of the templatestatic PutTemplateRequestfinal Integerorder()Order in which OpenSearch applies this template if index matches multiple templates.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()Configuration options for the index.protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Longversion()API name:versionMethods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forPutTemplateRequest -
_ENDPOINT
Endpoint "indices.put_template".
-
-
Method Details
-
of
public static PutTemplateRequest of(Function<PutTemplateRequest.Builder, ObjectBuilder<PutTemplateRequest>> fn) -
aliases
Aliases for the index.API name:
aliases -
clusterManagerTimeout
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_patterns -
mappings
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 -
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:
settings -
version
API name:version -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PutTemplateRequest.Builder,PutTemplateRequest> - Returns:
- a new builder instance.
-
builder
-
setupPutTemplateRequestDeserializer
protected static void setupPutTemplateRequestDeserializer(ObjectDeserializer<PutTemplateRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-