Class GetNodeResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetNodeResponse.Builder>
co.elastic.clients.elasticsearch.shutdown.GetNodeResponse.Builder
- All Implemented Interfaces:
WithJson<GetNodeResponse.Builder>
,ObjectBuilder<GetNodeResponse>
- Enclosing class:
- GetNodeResponse
public static class GetNodeResponse.Builder
extends WithJsonObjectBuilderBase<GetNodeResponse.Builder>
implements ObjectBuilder<GetNodeResponse>
Builder for
GetNodeResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetNodeResponse
.final GetNodeResponse.Builder
nodes
(NodeShutdownStatus value, NodeShutdownStatus... values) Required - API name:nodes
final GetNodeResponse.Builder
Required - API name:nodes
final GetNodeResponse.Builder
nodes
(List<NodeShutdownStatus> list) Required - API name:nodes
protected GetNodeResponse.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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodes
Required - API name:nodes
Adds all elements of
list
tonodes
. -
nodes
Required - API name:nodes
Adds one or more values to
nodes
. -
nodes
public final GetNodeResponse.Builder nodes(Function<NodeShutdownStatus.Builder, ObjectBuilder<NodeShutdownStatus>> fn) Required - API name:nodes
Adds a value to
nodes
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GetNodeResponse.Builder>
-
build
Builds aGetNodeResponse
.- Specified by:
build
in interfaceObjectBuilder<GetNodeResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-