Class GetRecordsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetRecordsResponse.Builder>
co.elastic.clients.elasticsearch.ml.GetRecordsResponse.Builder
- All Implemented Interfaces:
WithJson<GetRecordsResponse.Builder>
,ObjectBuilder<GetRecordsResponse>
- Enclosing class:
- GetRecordsResponse
public static class GetRecordsResponse.Builder
extends WithJsonObjectBuilderBase<GetRecordsResponse.Builder>
implements ObjectBuilder<GetRecordsResponse>
Builder for
GetRecordsResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetRecordsResponse
.count
(long value) Required - API name:count
Required - API name:records
Required - API name:records
Required - API name:records
protected GetRecordsResponse.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Required - API name:count
-
records
Required - API name:records
Adds all elements of
list
torecords
. -
records
Required - API name:records
Adds one or more values to
records
. -
records
public final GetRecordsResponse.Builder records(Function<Anomaly.Builder, ObjectBuilder<Anomaly>> fn) Required - API name:records
Adds a value to
records
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GetRecordsResponse.Builder>
-
build
Builds aGetRecordsResponse
.- Specified by:
build
in interfaceObjectBuilder<GetRecordsResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-