Class SimulateIndexTemplateRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.SimulateIndexTemplateRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class SimulateIndexTemplateRequest
extends RequestBase
implements JsonpSerializable
Simulate matching the given index name against the index templates in the
system
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._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 BooleanAPI name:allow_auto_createAPI name:composed_offinal Booleancreate()Iftrue, the template passed in the body is only used if no existing templates match the same index patterns.final DataStreamAPI name:data_streamAPI name:index_patternsfinal TimePeriod to wait for a connection to the master node.meta()API name:_metafinal Stringname()Required - Index or template name to simulatestatic SimulateIndexTemplateRequestfinal Integerpriority()API name:priorityvoidserialize(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:templatefinal Longversion()API name:versionMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forSimulateIndexTemplateRequest -
_ENDPOINT
public static final Endpoint<SimulateIndexTemplateRequest,SimulateIndexTemplateResponse, _ENDPOINTErrorResponse> Endpoint "indices.simulate_index_template".
-
-
Method Details
-
of
-
meta
API name:_meta -
allowAutoCreate
API name:allow_auto_create -
composedOf
API name:composed_of -
create
Iftrue, the template passed in the body is only used if no existing templates match the same index patterns. Iffalse, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation.API name:
create -
dataStream
API name:data_stream -
indexPatterns
API name:index_patterns -
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
name
Required - Index or template name to simulateAPI name:
name -
priority
API name:priority -
template
API name:template -
version
API name:version -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupSimulateIndexTemplateRequestDeserializer
protected static void setupSimulateIndexTemplateRequestDeserializer(ObjectDeserializer<SimulateIndexTemplateRequest.Builder> op)
-