Class ReindexRethrottleResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ReindexRethrottleResponse.Builder>
co.elastic.clients.elasticsearch.core.ReindexRethrottleResponse.Builder
- All Implemented Interfaces:
WithJson<ReindexRethrottleResponse.Builder>
,ObjectBuilder<ReindexRethrottleResponse>
- Enclosing class:
- ReindexRethrottleResponse
public static class ReindexRethrottleResponse.Builder extends WithJsonObjectBuilderBase<ReindexRethrottleResponse.Builder> implements ObjectBuilder<ReindexRethrottleResponse>
Builder for
ReindexRethrottleResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ReindexRethrottleResponse
build()
Builds aReindexRethrottleResponse
.ReindexRethrottleResponse.Builder
nodes(java.lang.String key, ReindexNode value)
Required - API name:nodes
ReindexRethrottleResponse.Builder
nodes(java.lang.String key, java.util.function.Function<ReindexNode.Builder,ObjectBuilder<ReindexNode>> fn)
Required - API name:nodes
ReindexRethrottleResponse.Builder
nodes(java.util.Map<java.lang.String,ReindexNode> map)
Required - API name:nodes
protected ReindexRethrottleResponse.Builder
self()
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
-
nodes
public final ReindexRethrottleResponse.Builder nodes(java.util.Map<java.lang.String,ReindexNode> map)Required - API name:nodes
Adds all entries of
map
tonodes
. -
nodes
Required - API name:nodes
Adds an entry to
nodes
. -
nodes
public final ReindexRethrottleResponse.Builder nodes(java.lang.String key, java.util.function.Function<ReindexNode.Builder,ObjectBuilder<ReindexNode>> fn)Required - API name:nodes
Adds an entry to
nodes
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ReindexRethrottleResponse.Builder>
-
build
Builds aReindexRethrottleResponse
.- Specified by:
build
in interfaceObjectBuilder<ReindexRethrottleResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-