Class Collector.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Collector.Builder>
co.elastic.clients.elasticsearch.core.search.Collector.Builder
- All Implemented Interfaces:
WithJson<Collector.Builder>,ObjectBuilder<Collector>
- Enclosing class:
- Collector
public static class Collector.Builder
extends WithJsonObjectBuilderBase<Collector.Builder>
implements ObjectBuilder<Collector>
Builder for
Collector.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCollector.final Collector.BuilderAPI name:childrenfinal Collector.BuilderAPI name:childrenfinal Collector.BuilderAPI name:childrenfinal Collector.BuilderRequired - API name:namefinal Collector.BuilderRequired - API name:reasonprotected Collector.Builderself()final Collector.BuildertimeInNanos(long value) Required - API name:time_in_nanosMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Required - API name:name -
reason
Required - API name:reason -
timeInNanos
Required - API name:time_in_nanos -
children
API name:childrenAdds all elements of
listtochildren. -
children
API name:childrenAdds one or more values to
children. -
children
API name:childrenAdds a value to
childrenusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Collector.Builder>
-
build
Builds aCollector.- Specified by:
buildin interfaceObjectBuilder<Collector>- Throws:
NullPointerException- if some of the required fields are null.
-