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
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final WaitForActiveShards.Kind
_kind()
Get the of the kind of variant held by this object.count()
Get thecount
variant value.boolean
isCount()
Is this variant instance of kindcount
?boolean
isOption()
Is this variant instance of kindoption
?static WaitForActiveShards
option()
Get theoption
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<WaitForActiveShards.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in 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 theoption
variant value.- Throws:
IllegalStateException
- if the current variant is not of theoption
kind.
-
isCount
public boolean isCount()Is this variant instance of kindcount
? -
count
Get thecount
variant value.- Throws:
IllegalStateException
- if the current variant is not of thecount
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-