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 for
HotThreadsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHotThreadsResponse.Required - API name:hot_threadshotThreads(List<HotThread> list) Required - API name:hot_threadshotThreads(HotThread value, HotThread... values) Required - API name:hot_threadsMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hotThreads
Required - API name:hot_threadsAdds all elements of
listtohotThreads. -
hotThreads
Required - API name:hot_threadsAdds one or more values to
hotThreads. -
hotThreads
public final HotThreadsResponse.Builder hotThreads(Function<HotThread.Builder, ObjectBuilder<HotThread>> fn) Required - API name:hot_threadsAdds a value to
hotThreadsusing a builder lambda. -
build
Builds aHotThreadsResponse.- Specified by:
buildin interfaceObjectBuilder<HotThreadsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-