Class NodeAllocationExplanation.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cluster.allocation_explain.NodeAllocationExplanation.Builder
- All Implemented Interfaces:
ObjectBuilder<NodeAllocationExplanation>
- Enclosing class:
- NodeAllocationExplanation
public static class NodeAllocationExplanation.Builder extends java.lang.Object implements ObjectBuilder<NodeAllocationExplanation>
Builder for
NodeAllocationExplanation.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
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
-
deciders
Required - API name:deciders -
deciders
Required - API name:deciders -
addDeciders
Add a value todeciders(List), creating the list if needed. -
deciders
public NodeAllocationExplanation.Builder deciders(java.util.function.Function<AllocationDecision.Builder,ObjectBuilder<AllocationDecision>> fn)Setdeciders(List)to a singleton list. -
addDeciders
public NodeAllocationExplanation.Builder addDeciders(java.util.function.Function<AllocationDecision.Builder,ObjectBuilder<AllocationDecision>> fn)Add a value todeciders(List), creating the list if needed. -
nodeAttributes
public NodeAllocationExplanation.Builder nodeAttributes(java.util.Map<java.lang.String,java.lang.String> value)Required - API name:node_attributes -
putNodeAttributes
public NodeAllocationExplanation.Builder putNodeAttributes(java.lang.String key, java.lang.String value)Add a key/value tonodeAttributes(Map), creating the map if needed. -
nodeDecision
Required - API name:node_decision -
nodeId
Required - API name:node_id -
nodeName
Required - API name:node_name -
store
API name:store -
store
public NodeAllocationExplanation.Builder store(java.util.function.Function<AllocationStore.Builder,ObjectBuilder<AllocationStore>> fn)API name:store -
transportAddress
Required - API name:transport_address -
weightRanking
Required - API name:weight_ranking -
build
Builds aNodeAllocationExplanation.- Specified by:
buildin interfaceObjectBuilder<NodeAllocationExplanation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-