Class WaitForActiveShards
java.lang.Object
co.elastic.clients.elasticsearch._types.WaitForActiveShards
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<WaitForActiveShards.Kind,Object>
@JsonpDeserializable
public class WaitForActiveShards
extends Object
implements TaggedUnion<WaitForActiveShards.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final WaitForActiveShards.Kind_kind()Get the of the kind of variant held by this object.count()Get thecountvariant value.booleanisCount()Is this variant instance of kindcount?booleanisOption()Is this variant instance of kindoption?static WaitForActiveShardsoption()Get theoptionvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
-
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<WaitForActiveShards.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<WaitForActiveShards.Kind,Object>
-
_toJsonString
-
of
public static WaitForActiveShards of(Function<WaitForActiveShards.Builder, ObjectBuilder<WaitForActiveShards>> fn) -
isOption
public boolean isOption()Is this variant instance of kindoption? -
option
Get theoptionvariant value.- Throws:
IllegalStateException- if the current variant is not of theoptionkind.
-
isCount
public boolean isCount()Is this variant instance of kindcount? -
count
Get thecountvariant value.- Throws:
IllegalStateException- if the current variant is not of thecountkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-