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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAllocationDecision.Required - API name:deciderRequired - API name:decisionexplanation(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, _mapPutAll
-
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:
NullPointerException- if some of the required fields are null.
-