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.BuilderaddHotThreads(HotThread value)Add a value tohotThreads(List), creating the list if needed.HotThreadsResponse.BuilderaddHotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)Add a value tohotThreads(List), creating the list if needed.HotThreadsResponsebuild()Builds aHotThreadsResponse.HotThreadsResponse.BuilderhotThreads(HotThread... value)Required - API name:hot_threadsHotThreadsResponse.BuilderhotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)SethotThreads(List)to a singleton list.HotThreadsResponse.BuilderhotThreads(java.util.List<HotThread> value)Required - API name:hot_threadsMethods 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 -
hotThreads
Required - API name:hot_threads -
addHotThreads
Add a value tohotThreads(List), creating the list if needed. -
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. -
build
Builds aHotThreadsResponse.- Specified by:
buildin interfaceObjectBuilder<HotThreadsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-