Class SimulateTemplateRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<SimulateTemplateRequest.Builder>
org.opensearch.client.opensearch.indices.SimulateTemplateRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<SimulateTemplateRequest.Builder,,SimulateTemplateRequest> MutableBuilder<SimulateTemplateRequest.Builder,,SimulateTemplateRequest> ObjectBuilder<SimulateTemplateRequest>
- Enclosing class:
SimulateTemplateRequest
public static class SimulateTemplateRequest.Builder
extends RequestBase.AbstractBuilder<SimulateTemplateRequest.Builder>
implements CopyableBuilder<SimulateTemplateRequest.Builder,SimulateTemplateRequest>
Builder for
SimulateTemplateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSimulateTemplateRequest.User defined reason for dry-run creating the new template for simulation purposes.Operation timeout for connection to cluster-manager node.clusterManagerTimeout(Time value) Operation timeout for connection to cluster-manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.Iftrue, the template passed in the body is only used if no existing templates match the same index patterns.Deprecated.masterTimeout(Time value) Deprecated.Name of the index template to simulate.protected SimulateTemplateRequest.Builderself()Required - Request body.template(IndexTemplate value) Required - Request body.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<SimulateTemplateRequest.Builder,SimulateTemplateRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<SimulateTemplateRequest.Builder>
-
cause
User defined reason for dry-run creating the new template for simulation purposes.API name:
cause -
clusterManagerTimeout
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
clusterManagerTimeout
@Nonnull public final SimulateTemplateRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
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 -
masterTimeout
@Deprecated @Nonnull public final SimulateTemplateRequest.Builder masterTimeout(@Nullable Time value) 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 -
masterTimeout
@Deprecated @Nonnull public final SimulateTemplateRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) 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 -
name
Name of the index template to simulate. To test a template configuration before you add it to the cluster, omit this parameter and specify the template configuration in the request body.API name:
name -
template
Required - Request body. -
template
@Nonnull public final SimulateTemplateRequest.Builder template(Function<IndexTemplate.Builder, ObjectBuilder<IndexTemplate>> fn) Required - Request body. -
build
Builds aSimulateTemplateRequest.- Specified by:
buildin interfaceObjectBuilder<SimulateTemplateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-