Class PostDataRequest.Builder<TData>
java.lang.Object
co.elastic.clients.elasticsearch.ml.PostDataRequest.Builder<TData>
- All Implemented Interfaces:
ObjectBuilder<PostDataRequest<TData>>
- Enclosing class:
- PostDataRequest<TData>
public static class PostDataRequest.Builder<TData> extends java.lang.Object implements ObjectBuilder<PostDataRequest<TData>>
Builder for
PostDataRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PostDataRequest.Builder<TData>
addData(TData value)
Add a value todata(List)
, creating the list if needed.PostDataRequest<TData>
build()
Builds aPostDataRequest
.PostDataRequest.Builder<TData>
data(java.util.List<TData> value)
Required - Request body.PostDataRequest.Builder<TData>
data(TData... value)
Required - Request body.PostDataRequest.Builder<TData>
jobId(java.lang.String value)
Required - The name of the job receiving the dataPostDataRequest.Builder<TData>
resetEnd(java.lang.String value)
Optional parameter to specify the end of the bucket resetting rangePostDataRequest.Builder<TData>
resetStart(java.lang.String value)
Optional parameter to specify the start of the bucket resetting rangePostDataRequest.Builder<TData>
tDataSerializer(JsonpSerializer<TData> value)
Serializer for TData.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
-
jobId
Required - The name of the job receiving the dataAPI name:
job_id
-
resetEnd
Optional parameter to specify the end of the bucket resetting rangeAPI name:
reset_end
-
resetStart
Optional parameter to specify the start of the bucket resetting rangeAPI name:
reset_start
-
data
Required - Request body.API name:
_value_body
-
data
Required - Request body.API name:
_value_body
-
addData
Add a value todata(List)
, creating the list if needed. -
tDataSerializer
Serializer for TData. If not set, an attempt will be made to find a serializer from the JSON context. -
build
Builds aPostDataRequest
.- Specified by:
build
in interfaceObjectBuilder<TData>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-