Class Slices
java.lang.Object
co.elastic.clients.elasticsearch._types.Slices
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Slices.Kind,Object>
@JsonpDeserializable
public class Slices
extends Object
implements TaggedUnion<Slices.Kind,Object>, JsonpSerializable
Slices configuration used to parallelize a process.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Slices.Kind_kind()Get the of the kind of variant held by this object.computed()Get thecomputedvariant value.booleanIs this variant instance of kindcomputed?booleanisValue()Is this variant instance of kindvalue?static Slicesvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()value()Get thevaluevariant value.
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Slices.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Slices.Kind,Object>
-
_toJsonString
-
of
-
isComputed
public boolean isComputed()Is this variant instance of kindcomputed? -
computed
Get thecomputedvariant value.- Throws:
IllegalStateException- if the current variant is not of thecomputedkind.
-
isValue
public boolean isValue()Is this variant instance of kindvalue? -
value
Get thevaluevariant value.- Throws:
IllegalStateException- if the current variant is not of thevaluekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-