Class SimulateIndexTemplateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<SimulateIndexTemplateRequest.Builder>
co.elastic.clients.elasticsearch.indices.SimulateIndexTemplateRequest.Builder
- All Implemented Interfaces:
WithJson<SimulateIndexTemplateRequest.Builder>
,ObjectBuilder<SimulateIndexTemplateRequest>
- Enclosing class:
- SimulateIndexTemplateRequest
public static class SimulateIndexTemplateRequest.Builder
extends RequestBase.AbstractBuilder<SimulateIndexTemplateRequest.Builder>
implements ObjectBuilder<SimulateIndexTemplateRequest>
Builder for
SimulateIndexTemplateRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSimulateIndexTemplateRequest
.User defined reason for dry-run creating the new template for simulation purposesWhether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing oneincludeDefaults
(Boolean value) If true, returns all relevant default configurations for the index template.masterTimeout
(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.Required - Name of the index to simulateprotected SimulateIndexTemplateRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
masterTimeout
public final SimulateIndexTemplateRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) 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
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<SimulateIndexTemplateRequest.Builder>
-
build
Builds aSimulateIndexTemplateRequest
.- Specified by:
build
in interfaceObjectBuilder<SimulateIndexTemplateRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-