Class Percentiles
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.Percentiles
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<Percentiles.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Percentiles
extends Object
implements TaggedUnion<Percentiles.Kind,Object>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Percentiles.Kind_kind()Get the of the kind of variant held by this object.array()Get thearrayvariant value.static Percentiles.Builderbuilder()booleaninthashCode()booleanisArray()Is this variant instance of kindarray?booleanisKeyed()Is this variant instance of kindkeyed?keyed()Get thekeyedvariant value.static Percentilesvoidserialize(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<Percentiles.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Percentiles.Kind,Object>
-
of
-
isArray
public boolean isArray()Is this variant instance of kindarray? -
array
Get thearrayvariant value.- Throws:
IllegalStateException- if the current variant is not thearraykind.
-
isKeyed
public boolean isKeyed()Is this variant instance of kindkeyed? -
keyed
Get thekeyedvariant value.- Throws:
IllegalStateException- if the current variant is not thekeyedkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-