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.BuildergeoMatch(EnrichPolicy value) Matches enrich data to incoming documents based on ageo_shapequery.final PutPolicyRequest.BuilderMatches enrich data to incoming documents based on ageo_shapequery.final PutPolicyRequest.BuildermasterTimeout(Time value) Period to wait for a connection to the master node.final PutPolicyRequest.BuilderPeriod to wait for a connection to the master node.final PutPolicyRequest.Buildermatch(EnrichPolicy value) Matches enrich data to incoming documents based on atermquery.final PutPolicyRequest.BuilderMatches enrich data to incoming documents based on atermquery.final PutPolicyRequest.BuilderRequired - Name of the enrich policy to create or update.final PutPolicyRequest.Builderrange(EnrichPolicy value) Matches a number, date, or IP address in incoming documents to a range in the enrich index based on atermquery.final PutPolicyRequest.BuilderMatches a number, date, or IP address in incoming documents to a range in the enrich index based on atermquery.protected PutPolicyRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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_shapequery.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_shapequery.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 atermquery.API name:
match -
match
public final PutPolicyRequest.Builder match(Function<EnrichPolicy.Builder, ObjectBuilder<EnrichPolicy>> fn) Matches enrich data to incoming documents based on atermquery.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 atermquery.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 atermquery.API name:
range -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutPolicyRequest.Builder>
-
build
Builds aPutPolicyRequest.- Specified by:
buildin interfaceObjectBuilder<PutPolicyRequest>- Throws:
NullPointerException- if some of the required fields are null.
-