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 an index. Get the index configuration that would be applied to the
specified index from an existing index template.
- 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>Endpoint "indices.simulate_index_template". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringcause()User defined reason for dry-run creating the new template for simulation purposesfinal Booleancreate()Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing oneprotected static JsonpDeserializer<SimulateIndexTemplateRequest>final BooleanIf true, returns all relevant default configurations for the index template.final IndexTemplateRequired - Request body.final TimePeriod to wait for a connection to the master node.final Stringname()Required - Name of the index to simulatestatic SimulateIndexTemplateRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
public static final Endpoint<SimulateIndexTemplateRequest,SimulateIndexTemplateResponse, _ENDPOINTErrorResponse> Endpoint "indices.simulate_index_template".
-
-
Method Details
-
of
-
cause
User defined reason for dry-run creating the new template for simulation purposesAPI name:
cause -
create
Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing oneAPI name:
create -
includeDefaults
If true, returns all relevant default configurations for the index template.API name:
include_defaults -
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 - Name of the index to simulateAPI name:
name -
indexTemplate
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createSimulateIndexTemplateRequestDeserializer
protected static JsonpDeserializer<SimulateIndexTemplateRequest> createSimulateIndexTemplateRequestDeserializer()
-