Class HotThreadsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HotThreadsResponse.Builder>
co.elastic.clients.elasticsearch.nodes.HotThreadsResponse.Builder
- All Implemented Interfaces:
WithJson<HotThreadsResponse.Builder>,ObjectBuilder<HotThreadsResponse>
- Enclosing class:
- HotThreadsResponse
public static class HotThreadsResponse.Builder extends WithJsonObjectBuilderBase<HotThreadsResponse.Builder> implements ObjectBuilder<HotThreadsResponse>
Builder for
HotThreadsResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description HotThreadsResponsebuild()Builds aHotThreadsResponse.HotThreadsResponse.BuilderhotThreads(HotThread value, HotThread... values)Required - API name:hot_threadsHotThreadsResponse.BuilderhotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)Required - API name:hot_threadsHotThreadsResponse.BuilderhotThreads(java.util.List<HotThread> list)Required - API name:hot_threadsprotected HotThreadsResponse.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hotThreads
Required - API name:hot_threadsAdds all elements of
listtohotThreads. -
hotThreads
Required - API name:hot_threadsAdds one or more values to
hotThreads. -
hotThreads
public final HotThreadsResponse.Builder hotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)Required - API name:hot_threadsAdds a value to
hotThreadsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<HotThreadsResponse.Builder>
-
build
Builds aHotThreadsResponse.- Specified by:
buildin interfaceObjectBuilder<HotThreadsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-