Class PutIndexTemplateRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.indices.PutIndexTemplateRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<PutIndexTemplateRequest.Builder,PutIndexTemplateRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class PutIndexTemplateRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<PutIndexTemplateRequest.Builder,PutIndexTemplateRequest>
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<PutIndexTemplateRequest> Json deserializer forPutIndexTemplateRequeststatic final Endpoint<PutIndexTemplateRequest, PutIndexTemplateResponse, ErrorResponse> Endpoint "indices.put_index_template". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) builder()final Stringcause()User defined reason for creating/updating the index template.final TimeOperation timeout for connection to cluster-manager node.An ordered list of component template names.final Booleancreate()Iftrue, this request cannot replace or update existing index templates.API name:data_streambooleaninthashCode()API name:index_patternsfinal TimeDeprecated.meta()API name:_metafinal Stringname()Required - Index or template namestatic PutIndexTemplateRequestfinal Integerpriority()Priority to determine index template precedence when a new data stream or index is created.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal IndexTemplateMappingtemplate()API name:templateCreate 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 forPutIndexTemplateRequest -
_ENDPOINT
public static final Endpoint<PutIndexTemplateRequest,PutIndexTemplateResponse, _ENDPOINTErrorResponse> Endpoint "indices.put_index_template".
-
-
Method Details
-
of
public static PutIndexTemplateRequest of(Function<PutIndexTemplateRequest.Builder, ObjectBuilder<PutIndexTemplateRequest>> fn) -
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 -
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_of -
create
Iftrue, this request cannot replace or update existing index templates.API name:
create -
dataStream
API name:data_stream -
indexPatterns
API name:index_patterns -
masterTimeout
Deprecated.Operation timeout for connection to cluster-manager node.API name:
master_timeout -
meta
API name:_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
API name:template -
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<PutIndexTemplateRequest.Builder,PutIndexTemplateRequest> - Returns:
- a new builder instance.
-
builder
-
setupPutIndexTemplateRequestDeserializer
protected static void setupPutIndexTemplateRequestDeserializer(ObjectDeserializer<PutIndexTemplateRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-