Class NodeAllocationExplanation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NodeAllocationExplanation.Builder>
co.elastic.clients.elasticsearch.cluster.allocation_explain.NodeAllocationExplanation.Builder
- All Implemented Interfaces:
WithJson<NodeAllocationExplanation.Builder>
,ObjectBuilder<NodeAllocationExplanation>
- Enclosing class:
- NodeAllocationExplanation
public static class NodeAllocationExplanation.Builder
extends WithJsonObjectBuilderBase<NodeAllocationExplanation.Builder>
implements ObjectBuilder<NodeAllocationExplanation>
Builder for
NodeAllocationExplanation
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aNodeAllocationExplanation
.deciders
(AllocationDecision value, AllocationDecision... values) Required - API name:deciders
Required - API name:deciders
deciders
(List<AllocationDecision> list) Required - API name:deciders
nodeAttributes
(String key, String value) Required - API name:node_attributes
nodeAttributes
(Map<String, String> map) Required - API name:node_attributes
nodeDecision
(Decision value) Required - API name:node_decision
Required - API name:node_id
Required - API name:node_name
protected NodeAllocationExplanation.Builder
self()
store
(AllocationStore value) API name:store
API name:store
transportAddress
(String value) Required - API name:transport_address
weightRanking
(int value) Required - API name:weight_ranking
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
-
deciders
Required - API name:deciders
Adds all elements of
list
todeciders
. -
deciders
public final NodeAllocationExplanation.Builder deciders(AllocationDecision value, AllocationDecision... values) Required - API name:deciders
Adds one or more values to
deciders
. -
deciders
public final NodeAllocationExplanation.Builder deciders(Function<AllocationDecision.Builder, ObjectBuilder<AllocationDecision>> fn) Required - API name:deciders
Adds a value to
deciders
using a builder lambda. -
nodeAttributes
Required - API name:node_attributes
Adds all entries of
map
tonodeAttributes
. -
nodeAttributes
Required - API name:node_attributes
Adds an entry to
nodeAttributes
. -
nodeDecision
Required - API name:node_decision
-
nodeId
Required - API name:node_id
-
nodeName
Required - API name:node_name
-
store
API name:store
-
store
public final NodeAllocationExplanation.Builder store(Function<AllocationStore.Builder, ObjectBuilder<AllocationStore>> fn) API name:store
-
transportAddress
Required - API name:transport_address
-
weightRanking
Required - API name:weight_ranking
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<NodeAllocationExplanation.Builder>
-
build
Builds aNodeAllocationExplanation
.- Specified by:
build
in interfaceObjectBuilder<NodeAllocationExplanation>
- Throws:
NullPointerException
- if some of the required fields are null.
-