Class GetRecordsResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.GetRecordsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetRecordsResponse>
- Enclosing class:
- GetRecordsResponse
public static class GetRecordsResponse.Builder extends java.lang.Object implements ObjectBuilder<GetRecordsResponse>
Builder for
GetRecordsResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetRecordsResponse.BuilderaddRecords(Anomaly value)Add a value torecords(List), creating the list if needed.GetRecordsResponse.BuilderaddRecords(java.util.function.Function<Anomaly.Builder,ObjectBuilder<Anomaly>> fn)Add a value torecords(List), creating the list if needed.GetRecordsResponsebuild()Builds aGetRecordsResponse.GetRecordsResponse.Buildercount(long value)Required - API name:countGetRecordsResponse.Builderrecords(Anomaly... value)Required - API name:recordsGetRecordsResponse.Builderrecords(java.util.function.Function<Anomaly.Builder,ObjectBuilder<Anomaly>> fn)Setrecords(List)to a singleton list.GetRecordsResponse.Builderrecords(java.util.List<Anomaly> value)Required - API name:recordsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Required - API name:count -
records
Required - API name:records -
records
Required - API name:records -
addRecords
Add a value torecords(List), creating the list if needed. -
records
public GetRecordsResponse.Builder records(java.util.function.Function<Anomaly.Builder,ObjectBuilder<Anomaly>> fn)Setrecords(List)to a singleton list. -
addRecords
public GetRecordsResponse.Builder addRecords(java.util.function.Function<Anomaly.Builder,ObjectBuilder<Anomaly>> fn)Add a value torecords(List), creating the list if needed. -
build
Builds aGetRecordsResponse.- Specified by:
buildin interfaceObjectBuilder<GetRecordsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-