Class RerouteParameters
java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.RerouteParameters
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class RerouteParameters extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
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 -
Method Summary
Modifier and Type Method Description booleanallowPrimary()Required - API name:allow_primaryjava.lang.StringfromNode()API name:from_nodejava.lang.Stringindex()Required - API name:indexjava.lang.Stringnode()Required - API name:nodestatic RerouteParametersof(java.util.function.Function<RerouteParameters.Builder,ObjectBuilder<RerouteParameters>> 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 voidsetupRerouteParametersDeserializer(ObjectDeserializer<RerouteParameters.Builder> op)intshard()Required - 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
-
-
Method Details
-
of
public static RerouteParameters of(java.util.function.Function<RerouteParameters.Builder,ObjectBuilder<RerouteParameters>> fn) -
allowPrimary
public final boolean allowPrimary()Required - API name:allow_primary -
index
public final java.lang.String index()Required - API name:index -
node
public final java.lang.String node()Required - API name:node -
shard
public final int shard()Required - API name:shard -
fromNode
@Nullable public final java.lang.String fromNode()API name:from_node -
toNode
@Nullable public final java.lang.String toNode()API name:to_node -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupRerouteParametersDeserializer
protected static void setupRerouteParametersDeserializer(ObjectDeserializer<RerouteParameters.Builder> op)
-