Class GetRecordsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.GetRecordsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetRecordsRequest>
- Enclosing class:
- GetRecordsRequest
public static class GetRecordsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<GetRecordsRequest>
Builder for
GetRecordsRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetRecordsRequest
build()
Builds aGetRecordsRequest
.GetRecordsRequest.Builder
desc(java.lang.Boolean value)
Refer to the description for thedesc
query parameter.GetRecordsRequest.Builder
end(java.lang.String value)
Refer to the description for theend
query parameter.GetRecordsRequest.Builder
excludeInterim(java.lang.Boolean value)
Refer to the description for theexclude_interim
query parameter.GetRecordsRequest.Builder
from(java.lang.Integer value)
Skips the specified number of records.GetRecordsRequest.Builder
jobId(java.lang.String value)
Required - Identifier for the anomaly detection job.GetRecordsRequest.Builder
page(Page value)
API name:page
GetRecordsRequest.Builder
page(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)
API name:page
GetRecordsRequest.Builder
recordScore(java.lang.Double value)
Refer to the description for therecord_score
query parameter.GetRecordsRequest.Builder
size(java.lang.Integer value)
Specifies the maximum number of records to obtain.GetRecordsRequest.Builder
sort(java.lang.String value)
Refer to the description for thesort
query parameter.GetRecordsRequest.Builder
start(java.lang.String value)
Refer to the description for thestart
query parameter.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
desc
Refer to the description for thedesc
query parameter.API name:
desc
-
end
Refer to the description for theend
query parameter.API name:
end
-
excludeInterim
Refer to the description for theexclude_interim
query parameter.API name:
exclude_interim
-
from
Skips the specified number of records.API name:
from
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id
-
page
API name:page
-
page
public final GetRecordsRequest.Builder page(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)API name:page
-
recordScore
Refer to the description for therecord_score
query parameter.API name:
record_score
-
size
Specifies the maximum number of records to obtain.API name:
size
-
sort
Refer to the description for thesort
query parameter.API name:
sort
-
start
Refer to the description for thestart
query parameter.API name:
start
-
build
Builds aGetRecordsRequest
.- Specified by:
build
in interfaceObjectBuilder<GetRecordsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-