Class AllocationDecision
- java.lang.Object
-
- org.opensearch.client.opensearch.cluster.allocation_explain.AllocationDecision
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class AllocationDecision extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAllocationDecision.BuilderBuilder forAllocationDecision.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<AllocationDecision>_DESERIALIZERJson deserializer forAllocationDecision
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdecider()Required - API name:deciderAllocationExplainDecisiondecision()Required - API name:decisionjava.lang.Stringexplanation()Required - API name:explanationstatic AllocationDecisionof(java.util.function.Function<AllocationDecision.Builder,ObjectBuilder<AllocationDecision>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupAllocationDecisionDeserializer(ObjectDeserializer<AllocationDecision.Builder> op)
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<AllocationDecision> _DESERIALIZER
Json deserializer forAllocationDecision
-
-
Method Detail
-
of
public static AllocationDecision of(java.util.function.Function<AllocationDecision.Builder,ObjectBuilder<AllocationDecision>> fn)
-
decider
public final java.lang.String decider()
Required - API name:decider
-
decision
public final AllocationExplainDecision decision()
Required - API name:decision
-
explanation
public final java.lang.String explanation()
Required - API name:explanation
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupAllocationDecisionDeserializer
protected static void setupAllocationDecisionDeserializer(ObjectDeserializer<AllocationDecision.Builder> op)
-
-