Class HotThreadsResponse.Builder
java.lang.Object
org.opensearch.client.opensearch.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description HotThreadsResponse.BuilderaddHotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)Add a value tohotThreads(List), creating the list if needed.HotThreadsResponse.BuilderaddHotThreads(HotThread value)Add a value tohotThreads(List), creating the list if needed.HotThreadsResponsebuild()Builds aHotThreadsResponse.HotThreadsResponse.BuilderhotThreads(java.util.function.Function<HotThread.Builder,ObjectBuilder<HotThread>> fn)SethotThreads(List)to a singleton list.HotThreadsResponse.BuilderhotThreads(java.util.List<HotThread> value)API name:hot_threadsHotThreadsResponse.BuilderhotThreads(HotThread... value)API name:hot_threads
-
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. -
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.
-