Class AllocationDecision
java.lang.Object
org.opensearch.client.opensearch.cluster.allocation_explain.AllocationDecision
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<AllocationDecision.Builder,AllocationDecision>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class AllocationDecision
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<AllocationDecision.Builder,AllocationDecision>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AllocationDecision> Json deserializer forAllocationDecision -
Method Summary
Modifier and TypeMethodDescriptionstatic AllocationDecision.Builderbuilder()final Stringdecider()Required - API name:deciderdecision()Required - API name:decisionbooleanfinal StringRequired - API name:explanationinthashCode()static AllocationDecisionvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forAllocationDecision
-
-
Method Details
-
of
public static AllocationDecision of(Function<AllocationDecision.Builder, ObjectBuilder<AllocationDecision>> fn) -
decider
Required - API name:decider -
decision
Required - API name:decision -
explanation
Required - API name:explanation -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AllocationDecision.Builder,AllocationDecision> - Returns:
- a new builder instance.
-
builder
-
setupAllocationDecisionDeserializer
protected static void setupAllocationDecisionDeserializer(ObjectDeserializer<AllocationDecision.Builder> op) -
hashCode
public int hashCode() -
equals
-