Class ExecutePolicyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ExecutePolicyRequest.Builder>
co.elastic.clients.elasticsearch.enrich.ExecutePolicyRequest.Builder
- All Implemented Interfaces:
WithJson<ExecutePolicyRequest.Builder>
,ObjectBuilder<ExecutePolicyRequest>
- Enclosing class:
- ExecutePolicyRequest
public static class ExecutePolicyRequest.Builder extends RequestBase.AbstractBuilder<ExecutePolicyRequest.Builder> implements ObjectBuilder<ExecutePolicyRequest>
Builder for
ExecutePolicyRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ExecutePolicyRequest
build()
Builds aExecutePolicyRequest
.ExecutePolicyRequest.Builder
name(java.lang.String value)
Required - The name of the enrich policyprotected ExecutePolicyRequest.Builder
self()
ExecutePolicyRequest.Builder
waitForCompletion(java.lang.Boolean value)
Should the request should block until the execution is complete.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Required - The name of the enrich policyAPI name:
name
-
waitForCompletion
Should the request should block until the execution is complete.API name:
wait_for_completion
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<ExecutePolicyRequest.Builder>
-
build
Builds aExecutePolicyRequest
.- Specified by:
build
in interfaceObjectBuilder<ExecutePolicyRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-