Class PutPolicyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutPolicyRequest.Builder>
co.elastic.clients.elasticsearch.enrich.PutPolicyRequest.Builder
- All Implemented Interfaces:
WithJson<PutPolicyRequest.Builder>
,ObjectBuilder<PutPolicyRequest>
- Enclosing class:
- PutPolicyRequest
public static class PutPolicyRequest.Builder
extends RequestBase.AbstractBuilder<PutPolicyRequest.Builder>
implements ObjectBuilder<PutPolicyRequest>
Builder for
PutPolicyRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPutPolicyRequest
.final PutPolicyRequest.Builder
geoMatch
(EnrichPolicy value) Matches enrich data to incoming documents based on ageo_shape
query.final PutPolicyRequest.Builder
Matches enrich data to incoming documents based on ageo_shape
query.final PutPolicyRequest.Builder
masterTimeout
(Time value) Period to wait for a connection to the master node.final PutPolicyRequest.Builder
Period to wait for a connection to the master node.final PutPolicyRequest.Builder
match
(EnrichPolicy value) Matches enrich data to incoming documents based on aterm
query.final PutPolicyRequest.Builder
Matches enrich data to incoming documents based on aterm
query.final PutPolicyRequest.Builder
Required - Name of the enrich policy to create or update.final PutPolicyRequest.Builder
range
(EnrichPolicy value) Matches a number, date, or IP address in incoming documents to a range in the enrich index based on aterm
query.final PutPolicyRequest.Builder
Matches a number, date, or IP address in incoming documents to a range in the enrich index based on aterm
query.protected PutPolicyRequest.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
-
geoMatch
Matches enrich data to incoming documents based on ageo_shape
query.API name:
geo_match
-
geoMatch
public final PutPolicyRequest.Builder geoMatch(Function<EnrichPolicy.Builder, ObjectBuilder<EnrichPolicy>> fn) Matches enrich data to incoming documents based on ageo_shape
query.API name:
geo_match
-
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout
-
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout
-
match
Matches enrich data to incoming documents based on aterm
query.API name:
match
-
match
public final PutPolicyRequest.Builder match(Function<EnrichPolicy.Builder, ObjectBuilder<EnrichPolicy>> fn) Matches enrich data to incoming documents based on aterm
query.API name:
match
-
name
Required - Name of the enrich policy to create or update.API name:
name
-
range
Matches a number, date, or IP address in incoming documents to a range in the enrich index based on aterm
query.API name:
range
-
range
public final PutPolicyRequest.Builder range(Function<EnrichPolicy.Builder, ObjectBuilder<EnrichPolicy>> fn) Matches a number, date, or IP address in incoming documents to a range in the enrich index based on aterm
query.API name:
range
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PutPolicyRequest.Builder>
-
build
Builds aPutPolicyRequest
.- Specified by:
build
in interfaceObjectBuilder<PutPolicyRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-