Class PutPolicyRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.enrich.PutPolicyRequest
- All Implemented Interfaces:
JsonpSerializable
Create an enrich policy. Creates an enrich policy.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutPolicyRequest>Json deserializer forPutPolicyRequeststatic final Endpoint<PutPolicyRequest,PutPolicyResponse, ErrorResponse> Endpoint "enrich.put_policy". -
Method Summary
Modifier and TypeMethodDescriptionfinal EnrichPolicygeoMatch()Matches enrich data to incoming documents based on ageo_shapequery.final TimePeriod to wait for a connection to the master node.final EnrichPolicymatch()Matches enrich data to incoming documents based on atermquery.final Stringname()Required - Name of the enrich policy to create or update.static PutPolicyRequestfinal EnrichPolicyrange()Matches a number, date, or IP address in incoming documents to a range in the enrich index based on atermquery.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutPolicyRequest -
_ENDPOINT
Endpoint "enrich.put_policy".
-
-
Method Details
-
of
public static PutPolicyRequest of(Function<PutPolicyRequest.Builder, ObjectBuilder<PutPolicyRequest>> fn) -
geoMatch
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 -
match
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutPolicyRequestDeserializer
protected static void setupPutPolicyRequestDeserializer(ObjectDeserializer<PutPolicyRequest.Builder> op)
-