Class PostDataRequest<TData>
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.PostDataRequest<TData>
- All Implemented Interfaces:
ElasticsearchCommonRequest
,JsonpSerializable
public final class PostDataRequest<TData> extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PostDataRequest.Builder<TData>
Builder forPostDataRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static Endpoint<PostDataRequest<?>,PostDataResponse,ElasticsearchError>
ENDPOINT
Endpoint "ml.post_data
". -
Constructor Summary
Constructors Constructor Description PostDataRequest(PostDataRequest.Builder<TData> builder)
PostDataRequest(java.util.function.Function<PostDataRequest.Builder<TData>,PostDataRequest.Builder<TData>> fn)
-
Method Summary
Modifier and Type Method Description static <TData> JsonpDeserializer<PostDataRequest<TData>>
createPostDataRequestDeserializer(JsonpDeserializer<TData> tDataDeserializer)
java.util.List<TData>
data()
Request body.java.lang.String
jobId()
The name of the job receiving the datajava.lang.String
resetEnd()
Optional parameter to specify the end of the bucket resetting rangejava.lang.String
resetStart()
Optional parameter to specify the start of the bucket resetting rangevoid
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this value to JSON.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ENDPOINT
Endpoint "ml.post_data
".
-
-
Constructor Details
-
PostDataRequest
-
PostDataRequest
public PostDataRequest(java.util.function.Function<PostDataRequest.Builder<TData>,PostDataRequest.Builder<TData>> fn)
-
-
Method Details
-
jobId
public java.lang.String jobId()The name of the job receiving the dataAPI name:
job_id
-
resetEnd
@Nullable public java.lang.String resetEnd()Optional parameter to specify the end of the bucket resetting rangeAPI name:
reset_end
-
resetStart
@Nullable public java.lang.String resetStart()Optional parameter to specify the start of the bucket resetting rangeAPI name:
reset_start
-
data
Request body.API name:
_value_body
-
serialize
Serialize this value to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
createPostDataRequestDeserializer
public static <TData> JsonpDeserializer<PostDataRequest<TData>> createPostDataRequestDeserializer(JsonpDeserializer<TData> tDataDeserializer)
-