Class GetDatafeedsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetDatafeedsResponse.Builder>
co.elastic.clients.elasticsearch.ml.GetDatafeedsResponse.Builder
- All Implemented Interfaces:
WithJson<GetDatafeedsResponse.Builder>
,ObjectBuilder<GetDatafeedsResponse>
- Enclosing class:
- GetDatafeedsResponse
public static class GetDatafeedsResponse.Builder
extends WithJsonObjectBuilderBase<GetDatafeedsResponse.Builder>
implements ObjectBuilder<GetDatafeedsResponse>
Builder for
GetDatafeedsResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetDatafeedsResponse
.count
(long value) Required - API name:count
Required - API name:datafeeds
Required - API name:datafeeds
Required - API name:datafeeds
protected GetDatafeedsResponse.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
-
datafeeds
Required - API name:datafeeds
Adds all elements of
list
todatafeeds
. -
datafeeds
Required - API name:datafeeds
Adds one or more values to
datafeeds
. -
datafeeds
public final GetDatafeedsResponse.Builder datafeeds(Function<Datafeed.Builder, ObjectBuilder<Datafeed>> fn) Required - API name:datafeeds
Adds a value to
datafeeds
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GetDatafeedsResponse.Builder>
-
build
Builds aGetDatafeedsResponse
.- Specified by:
build
in interfaceObjectBuilder<GetDatafeedsResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-