Class WaitForActiveShards
- java.lang.Object
-
- org.opensearch.client.opensearch._types.WaitForActiveShards
-
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<WaitForActiveShards.Kind,java.lang.Object>
@JsonpDeserializable public class WaitForActiveShards extends java.lang.Object implements TaggedUnion<WaitForActiveShards.Kind,java.lang.Object>, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWaitForActiveShards.Builderstatic classWaitForActiveShards.Kind
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<WaitForActiveShards>_DESERIALIZER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object_get()WaitForActiveShards.Kind_kind()Get the of the kind of variant held by this object.java.lang.String_toJsonString()java.lang.Integercount()Get thecountvariant value.booleanisCount()Is this variant instance of kindcount?booleanisOption()Is this variant instance of kindoption?static WaitForActiveShardsof(java.util.function.Function<WaitForActiveShards.Builder,ObjectBuilder<WaitForActiveShards>> fn)WaitForActiveShardOptionsoption()Get theoptionvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<WaitForActiveShards> _DESERIALIZER
-
-
Method Detail
-
_kind
public final WaitForActiveShards.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<WaitForActiveShards.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()
- Specified by:
_getin interfaceTaggedUnion<WaitForActiveShards.Kind,java.lang.Object>
-
_toJsonString
public java.lang.String _toJsonString()
-
of
public static WaitForActiveShards of(java.util.function.Function<WaitForActiveShards.Builder,ObjectBuilder<WaitForActiveShards>> fn)
-
isOption
public boolean isOption()
Is this variant instance of kindoption?
-
option
public WaitForActiveShardOptions option()
Get theoptionvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theoptionkind.
-
isCount
public boolean isCount()
Is this variant instance of kindcount?
-
count
public java.lang.Integer count()
Get thecountvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecountkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
-