Class NodeAllocationExplanation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cluster.allocation_explain.NodeAllocationExplanation.Builder
- All Implemented Interfaces:
ObjectBuilder<NodeAllocationExplanation>
- Enclosing class:
- NodeAllocationExplanation
public static class NodeAllocationExplanation.Builder extends ObjectBuilderBase implements ObjectBuilder<NodeAllocationExplanation>
Builder for
NodeAllocationExplanation.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description NodeAllocationExplanationbuild()Builds aNodeAllocationExplanation.NodeAllocationExplanation.Builderdeciders(AllocationDecision value, AllocationDecision... values)Required - API name:decidersNodeAllocationExplanation.Builderdeciders(java.util.function.Function<AllocationDecision.Builder,ObjectBuilder<AllocationDecision>> fn)Required - API name:decidersNodeAllocationExplanation.Builderdeciders(java.util.List<AllocationDecision> list)Required - API name:decidersNodeAllocationExplanation.BuildernodeAttributes(java.lang.String key, java.lang.String value)Required - API name:node_attributesNodeAllocationExplanation.BuildernodeAttributes(java.util.Map<java.lang.String,java.lang.String> map)Required - API name:node_attributesNodeAllocationExplanation.BuildernodeDecision(Decision value)Required - API name:node_decisionNodeAllocationExplanation.BuildernodeId(java.lang.String value)Required - API name:node_idNodeAllocationExplanation.BuildernodeName(java.lang.String value)Required - API name:node_nameNodeAllocationExplanation.Builderstore(AllocationStore value)API name:storeNodeAllocationExplanation.Builderstore(java.util.function.Function<AllocationStore.Builder,ObjectBuilder<AllocationStore>> fn)API name:storeNodeAllocationExplanation.BuildertransportAddress(java.lang.String value)Required - API name:transport_addressNodeAllocationExplanation.BuilderweightRanking(int value)Required - API name:weight_rankingMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:decidersAdds all elements of
listtodeciders. -
deciders
public final NodeAllocationExplanation.Builder deciders(AllocationDecision value, AllocationDecision... values)Required - API name:decidersAdds one or more values to
deciders. -
deciders
public final NodeAllocationExplanation.Builder deciders(java.util.function.Function<AllocationDecision.Builder,ObjectBuilder<AllocationDecision>> fn)Required - API name:decidersAdds a value to
decidersusing a builder lambda. -
nodeAttributes
public final NodeAllocationExplanation.Builder nodeAttributes(java.util.Map<java.lang.String,java.lang.String> map)Required - API name:node_attributesAdds all entries of
maptonodeAttributes. -
nodeAttributes
public final NodeAllocationExplanation.Builder nodeAttributes(java.lang.String key, java.lang.String value)Required - API name:node_attributesAdds 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(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.
-