Package org.elasticsearch.client.indices
Class SimulateIndexTemplateRequest
java.lang.Object
org.elasticsearch.client.TimedRequest
org.elasticsearch.client.indices.SimulateIndexTemplateRequest
- All Implemented Interfaces:
Validatable
public class SimulateIndexTemplateRequest extends TimedRequest
A request to simulate matching a provided index name and an optional new index template against the existing index templates.
-
Field Summary
Fields inherited from class org.elasticsearch.client.TimedRequest
DEFAULT_ACK_TIMEOUT, DEFAULT_MASTER_NODE_TIMEOUT -
Constructor Summary
Constructors Constructor Description SimulateIndexTemplateRequest(java.lang.String indexName) -
Method Summary
Modifier and Type Method Description java.lang.StringindexName()Return the index name for which we simulate the index template matching.SimulateIndexTemplateRequestindexName(java.lang.String indexName)Set the index name to simulate template matching against the index templates in the system.PutComposableIndexTemplateRequestindexTemplateV2Request()An optional new template request will be part of the index template simulation.SimulateIndexTemplateRequestindexTemplateV2Request(PutComposableIndexTemplateRequest indexTemplateV2Request)Optionally, define a new template request which will included in the index simulation as if it was an index template stored in the system.Methods inherited from class org.elasticsearch.client.TimedRequest
masterNodeTimeout, setMasterTimeout, setTimeout, timeout
-
Constructor Details
-
SimulateIndexTemplateRequest
public SimulateIndexTemplateRequest(java.lang.String indexName)
-
-
Method Details
-
indexName
public java.lang.String indexName()Return the index name for which we simulate the index template matching. -
indexName
Set the index name to simulate template matching against the index templates in the system. -
indexTemplateV2Request
An optional new template request will be part of the index template simulation. -
indexTemplateV2Request
public SimulateIndexTemplateRequest indexTemplateV2Request(@Nullable PutComposableIndexTemplateRequest indexTemplateV2Request)Optionally, define a new template request which will included in the index simulation as if it was an index template stored in the system. The new template will be validated just as a regular, standalone, live, new index template request.
-