Class HotThread.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HotThread.Builder>
co.elastic.clients.elasticsearch.nodes.hot_threads.HotThread.Builder
- All Implemented Interfaces:
WithJson<HotThread.Builder>
,ObjectBuilder<HotThread>
- Enclosing class:
- HotThread
public static class HotThread.Builder extends WithJsonObjectBuilderBase<HotThread.Builder> implements ObjectBuilder<HotThread>
Builder for
HotThread
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HotThread
build()
Builds aHotThread
.HotThread.Builder
hosts(java.lang.String value, java.lang.String... values)
Required - API name:hosts
HotThread.Builder
hosts(java.util.List<java.lang.String> list)
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
protected HotThread.Builder
self()
HotThread.Builder
threads(java.lang.String value, java.lang.String... values)
Required - API name:threads
HotThread.Builder
threads(java.util.List<java.lang.String> list)
Required - API name:threads
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
Adds all elements of
list
tohosts
. -
hosts
Required - API name:hosts
Adds one or more values to
hosts
. -
nodeId
Required - API name:node_id
-
nodeName
Required - API name:node_name
-
threads
Required - API name:threads
Adds all elements of
list
tothreads
. -
threads
Required - API name:threads
Adds one or more values to
threads
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<HotThread.Builder>
-
build
Builds aHotThread
.- Specified by:
build
in interfaceObjectBuilder<HotThread>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-