Class HotThreadsResponse.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.nodes.HotThreadsResponse.Builder
-
- All Implemented Interfaces:
ObjectBuilder<HotThreadsResponse>
- Enclosing class:
- HotThreadsResponse
public static class HotThreadsResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<HotThreadsResponse>
Builder forHotThreadsResponse.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HotThreadsResponsebuild()Builds aHotThreadsResponse.HotThreadsResponse.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_threadsHotThreadsResponse.BuilderhotThreads(HotThread value, HotThread... values)Required - API name:hot_threads-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
hotThreads
public final HotThreadsResponse.Builder hotThreads(java.util.List<HotThread> list)
Required - API name:hot_threadsAdds all elements of
listtohotThreads.
-
hotThreads
public final HotThreadsResponse.Builder hotThreads(HotThread value, HotThread... values)
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.
-
build
public HotThreadsResponse build()
Builds aHotThreadsResponse.- Specified by:
buildin interfaceObjectBuilder<HotThreadsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-