Class LongTermsBucketKey
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.LongTermsBucketKey
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<LongTermsBucketKey.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class LongTermsBucketKey
extends Object
implements TaggedUnion<LongTermsBucketKey.Kind,Object>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final LongTermsBucketKey.Kind_kind()Get the of the kind of variant held by this object.static LongTermsBucketKey.Builderbuilder()booleaninthashCode()booleanisSigned()Is this variant instance of kindsigned?booleanIs this variant instance of kindunsigned?static LongTermsBucketKeyvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) signed()Get thesignedvariant value.unsigned()Get theunsignedvariant value.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<LongTermsBucketKey.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<LongTermsBucketKey.Kind,Object>
-
of
public static LongTermsBucketKey of(Function<LongTermsBucketKey.Builder, ObjectBuilder<LongTermsBucketKey>> fn) -
_toJsonString
-
isSigned
public boolean isSigned()Is this variant instance of kindsigned? -
signed
Get thesignedvariant value.- Throws:
IllegalStateException- if the current variant is not thesignedkind.
-
isUnsigned
public boolean isUnsigned()Is this variant instance of kindunsigned? -
unsigned
Get theunsignedvariant value.- Throws:
IllegalStateException- if the current variant is not theunsignedkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-