Class RerouteParameters
java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.RerouteParameters
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class RerouteParameters extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRerouteParameters.BuilderBuilder forRerouteParameters. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RerouteParameters>_DESERIALIZERJson deserializer forRerouteParameters -
Constructor Summary
Constructors Constructor Description RerouteParameters(RerouteParameters.Builder builder)RerouteParameters(java.util.function.Function<RerouteParameters.Builder,RerouteParameters.Builder> fn) -
Method Summary
Modifier and Type Method Description booleanallowPrimary()API name:allow_primaryjava.lang.StringfromNode()API name:from_nodejava.lang.Stringindex()API name:indexjava.lang.Stringnode()API name:nodevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupRerouteParametersDeserializer(DelegatingDeserializer<RerouteParameters.Builder> op)intshard()API name:shardjava.lang.StringtoNode()API name:to_nodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forRerouteParameters
-
-
Constructor Details
-
RerouteParameters
-
RerouteParameters
public RerouteParameters(java.util.function.Function<RerouteParameters.Builder,RerouteParameters.Builder> fn)
-
-
Method Details
-
allowPrimary
public boolean allowPrimary()API name:allow_primary -
index
public java.lang.String index()API name:index -
node
public java.lang.String node()API name:node -
shard
public int shard()API name:shard -
fromNode
@Nullable public java.lang.String fromNode()API name:from_node -
toNode
@Nullable public java.lang.String toNode()API name:to_node -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupRerouteParametersDeserializer
protected static void setupRerouteParametersDeserializer(DelegatingDeserializer<RerouteParameters.Builder> op)
-