Class HotThread.Builder
java.lang.Object
co.elastic.clients.elasticsearch.nodes.hot_threads.HotThread.Builder
- All Implemented Interfaces:
ObjectBuilder<HotThread>
- Enclosing class:
- HotThread
public static class HotThread.Builder extends java.lang.Object implements ObjectBuilder<HotThread>
Builder for
HotThread
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HotThread.Builder
addHosts(java.lang.String value)
Add a value tohosts(List)
, creating the list if needed.HotThread.Builder
addThreads(java.lang.String value)
Add a value tothreads(List)
, creating the list if needed.HotThread
build()
Builds aHotThread
.HotThread.Builder
hosts(java.lang.String... value)
Required - API name:hosts
HotThread.Builder
hosts(java.util.List<java.lang.String> value)
Required - API name:hosts
HotThread.Builder
nodeId(java.lang.String value)
Required - API name:node_id
HotThread.Builder
nodeName(java.lang.String value)
Required - API name:node_name
HotThread.Builder
threads(java.lang.String... value)
Required - API name:threads
HotThread.Builder
threads(java.util.List<java.lang.String> value)
Required - API name:threads
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hosts
Required - API name:hosts
-
hosts
Required - API name:hosts
-
addHosts
Add a value tohosts(List)
, creating the list if needed. -
nodeId
Required - API name:node_id
-
nodeName
Required - API name:node_name
-
threads
Required - API name:threads
-
threads
Required - API name:threads
-
addThreads
Add a value tothreads(List)
, creating the list if needed. -
build
Builds aHotThread
.- Specified by:
build
in interfaceObjectBuilder<HotThread>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-