Class SimulateIndexTemplateRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.indices.SimulateIndexTemplateRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SimulateIndexTemplateRequest.Builder,SimulateIndexTemplateRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class SimulateIndexTemplateRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<SimulateIndexTemplateRequest.Builder,SimulateIndexTemplateRequest>
Simulate matching the given index name against the index templates in the system.
-
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<SimulateIndexTemplateRequest> Json deserializer forSimulateIndexTemplateRequestEndpoint "indices.simulate_index_template". -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanThis setting overrides the value of theaction.auto_create_indexcluster setting.protected voidapplyQueryParameters(Map<String, String> params) builder()final TimeOperation timeout for connection to cluster-manager node.An ordered list of component template names.API name:data_streambooleaninthashCode()API name:index_patternsfinal TimeDeprecated.meta()API name:_metafinal Stringname()Required - Index or template name to simulatestatic SimulateIndexTemplateRequestfinal 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 voidsetupSimulateIndexTemplateRequestDeserializer(ObjectDeserializer<SimulateIndexTemplateRequest.Builder> op) final 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 forSimulateIndexTemplateRequest -
_ENDPOINT
public static final Endpoint<SimulateIndexTemplateRequest,SimulateIndexTemplateResponse, _ENDPOINTErrorResponse> Endpoint "indices.simulate_index_template".
-
-
Method Details
-
of
-
allowAutoCreate
This setting overrides the value of theaction.auto_create_indexcluster setting. If set totruein a template, then indexes can be automatically created using that template even if auto-creation of indexes is disabled usingactions.auto_create_index. If set tofalse, then indexes or data streams matching the template must always be explicitly created, and may never be automatically created.API name:
allow_auto_create -
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 -
dataStream
API name:data_stream -
indexPatterns
API name:index_patterns -
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 -
meta
API name:_meta -
name
Required - Index or template name to simulateAPI 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<SimulateIndexTemplateRequest.Builder,SimulateIndexTemplateRequest> - Returns:
- a new builder instance.
-
builder
-
setupSimulateIndexTemplateRequestDeserializer
protected static void setupSimulateIndexTemplateRequestDeserializer(ObjectDeserializer<SimulateIndexTemplateRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-