Class HotThreadsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HotThreadsResponse.Builder>
co.elastic.clients.elasticsearch.nodes.HotThreadsResponse.Builder
- All Implemented Interfaces:
WithJson<HotThreadsResponse.Builder>,ObjectBuilder<HotThreadsResponse>
- Enclosing class:
- HotThreadsResponse
public static class HotThreadsResponse.Builder
extends WithJsonObjectBuilderBase<HotThreadsResponse.Builder>
implements ObjectBuilder<HotThreadsResponse>
Builder for
HotThreadsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHotThreadsResponse.hotThreads(HotThread value, HotThread... values) Required - API name:hot_threadsRequired - API name:hot_threadshotThreads(List<HotThread> list) Required - API name:hot_threadsprotected HotThreadsResponse.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _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. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<HotThreadsResponse.Builder>
-
build
Builds aHotThreadsResponse.- Specified by:
buildin interfaceObjectBuilder<HotThreadsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-