Class FieldDateMath
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.FieldDateMath
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<FieldDateMath.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class FieldDateMath
extends Object
implements TaggedUnion<FieldDateMath.Kind,Object>, PlainJsonSerializable
A date range limit, represented either as a DateMath expression or a number expressed according to the target field's precision.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final FieldDateMath.Kind_kind()Get the of the kind of variant held by this object.static FieldDateMath.Builderbuilder()booleanexpr()Get theexprvariant value.inthashCode()booleanisExpr()Is this variant instance of kindexpr?booleanisValue()Is this variant instance of kindvalue?static FieldDateMathvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) value()Get thevaluevariant 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<FieldDateMath.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<FieldDateMath.Kind,Object>
-
of
-
_toJsonString
-
isExpr
public boolean isExpr()Is this variant instance of kindexpr? -
expr
Get theexprvariant value.- Throws:
IllegalStateException- if the current variant is not theexprkind.
-
isValue
public boolean isValue()Is this variant instance of kindvalue? -
value
Get thevaluevariant value.- Throws:
IllegalStateException- if the current variant is not thevaluekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-