Class HotThreadsResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.nodes.HotThreadsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<HotThreadsResponse>
- Enclosing class:
- HotThreadsResponse
public static class HotThreadsResponse.Builder extends java.lang.Object implements ObjectBuilder<HotThreadsResponse>
Builder for
HotThreadsResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HotThreadsResponse.Builder
addHotThreads(HotThread value)
Add a value tohotThreads(List)
, creating the list if needed.HotThreadsResponse.Builder
addHotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)
Add a value tohotThreads(List)
, creating the list if needed.HotThreadsResponse
build()
Builds aHotThreadsResponse
.HotThreadsResponse.Builder
hotThreads(HotThread... value)
API name:hot_threads
HotThreadsResponse.Builder
hotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)
SethotThreads(List)
to a singleton list.HotThreadsResponse.Builder
hotThreads(java.util.List<HotThread> value)
API name:hot_threads
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
API name:hot_threads
-
hotThreads
API name:hot_threads
-
addHotThreads
Add a value tohotThreads(List)
, creating the list if needed. 4 -
hotThreads
public HotThreadsResponse.Builder hotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)SethotThreads(List)
to a singleton list. -
addHotThreads
public HotThreadsResponse.Builder addHotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)Add a value tohotThreads(List)
, creating the list if needed. 5 -
build
Builds aHotThreadsResponse
.- Specified by:
build
in interfaceObjectBuilder<HotThreadsResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-