Class AllocationDecision.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AllocationDecision.Builder>
co.elastic.clients.elasticsearch.cluster.allocation_explain.AllocationDecision.Builder
- All Implemented Interfaces:
WithJson<AllocationDecision.Builder>,ObjectBuilder<AllocationDecision>
- Enclosing class:
- AllocationDecision
public static class AllocationDecision.Builder extends WithJsonObjectBuilderBase<AllocationDecision.Builder> implements ObjectBuilder<AllocationDecision>
Builder for
AllocationDecision.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description AllocationDecisionbuild()Builds aAllocationDecision.AllocationDecision.Builderdecider(java.lang.String value)Required - API name:deciderAllocationDecision.Builderdecision(AllocationExplainDecision value)Required - API name:decisionAllocationDecision.Builderexplanation(java.lang.String value)Required - API name:explanationprotected AllocationDecision.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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
-
decider
Required - API name:decider -
decision
Required - API name:decision -
explanation
Required - API name:explanation -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AllocationDecision.Builder>
-
build
Builds aAllocationDecision.- Specified by:
buildin interfaceObjectBuilder<AllocationDecision>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-