Class HotThreadsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.nodes.HotThreadsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<HotThreadsResponse>
- Enclosing class:
- HotThreadsResponse
public static class HotThreadsResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<HotThreadsResponse>
Builder for
HotThreadsResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HotThreadsResponse
build()
Builds aHotThreadsResponse
.HotThreadsResponse.Builder
hotThreads(HotThread value, HotThread... values)
Required - API name:hot_threads
HotThreadsResponse.Builder
hotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)
Required - API name:hot_threads
HotThreadsResponse.Builder
hotThreads(java.util.List<HotThread> list)
Required - API name:hot_threads
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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_threads
Adds all elements of
list
tohotThreads
. -
hotThreads
Required - API name:hot_threads
Adds 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_threads
Adds a value to
hotThreads
using a builder lambda. -
build
Builds aHotThreadsResponse
.- Specified by:
build
in interfaceObjectBuilder<HotThreadsResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-