Class WaitForNodes
java.lang.Object
org.opensearch.client.opensearch.cluster.WaitForNodes
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<WaitForNodes.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class WaitForNodes
extends Object
implements TaggedUnion<WaitForNodes.Kind,Object>, PlainJsonSerializable
Waits until the specified number of nodes (
N) is available. Accepts >=N, <=N,
>N, and <N. You can also use ge(N), le(N), gt(N), and
lt(N) notation.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final WaitForNodes.Kind_kind()Get the of the kind of variant held by this object.static WaitForNodes.Builderbuilder()Get thecomparisonvariant value.count()Get thecountvariant value.booleaninthashCode()booleanIs this variant instance of kindcomparison?booleanisCount()Is this variant instance of kindcount?static WaitForNodesvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
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<WaitForNodes.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<WaitForNodes.Kind,Object>
-
of
-
_toJsonString
-
isComparison
public boolean isComparison()Is this variant instance of kindcomparison? -
comparison
Get thecomparisonvariant value.- Throws:
IllegalStateException- if the current variant is not thecomparisonkind.
-
isCount
public boolean isCount()Is this variant instance of kindcount? -
count
Get thecountvariant value.- Throws:
IllegalStateException- if the current variant is not thecountkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-