Class ChangeType
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.ChangeType
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<ChangeType.Kind,Object>
@JsonpDeserializable
public class ChangeType
extends Object
implements TaggedUnion<ChangeType.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final ChangeType.Kind_kind()Get the of the kind of variant held by this object.dip()Get thedipvariant value.Get thedistribution_changevariant value.Get theindeterminablevariant value.booleanisDip()Is this variant instance of kinddip?booleanIs this variant instance of kinddistribution_change?booleanIs this variant instance of kindindeterminable?booleanIs this variant instance of kindnon_stationary?booleanisSpike()Is this variant instance of kindspike?booleanIs this variant instance of kindstationary?booleanIs this variant instance of kindstep_change?booleanIs this variant instance of kindtrend_change?Get thenon_stationaryvariant value.static ChangeTypevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidspike()Get thespikevariant value.Get thestationaryvariant value.Get thestep_changevariant value.toString()Get thetrend_changevariant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
ChangeType
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<ChangeType.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<ChangeType.Kind,Object>
-
of
-
isDip
public boolean isDip()Is this variant instance of kinddip? -
dip
Get thedipvariant value.- Throws:
IllegalStateException- if the current variant is not of thedipkind.
-
isDistributionChange
public boolean isDistributionChange()Is this variant instance of kinddistribution_change? -
distributionChange
Get thedistribution_changevariant value.- Throws:
IllegalStateException- if the current variant is not of thedistribution_changekind.
-
isIndeterminable
public boolean isIndeterminable()Is this variant instance of kindindeterminable? -
indeterminable
Get theindeterminablevariant value.- Throws:
IllegalStateException- if the current variant is not of theindeterminablekind.
-
isNonStationary
public boolean isNonStationary()Is this variant instance of kindnon_stationary? -
nonStationary
Get thenon_stationaryvariant value.- Throws:
IllegalStateException- if the current variant is not of thenon_stationarykind.
-
isSpike
public boolean isSpike()Is this variant instance of kindspike? -
spike
Get thespikevariant value.- Throws:
IllegalStateException- if the current variant is not of thespikekind.
-
isStationary
public boolean isStationary()Is this variant instance of kindstationary? -
stationary
Get thestationaryvariant value.- Throws:
IllegalStateException- if the current variant is not of thestationarykind.
-
isStepChange
public boolean isStepChange()Is this variant instance of kindstep_change? -
stepChange
Get thestep_changevariant value.- Throws:
IllegalStateException- if the current variant is not of thestep_changekind.
-
isTrendChange
public boolean isTrendChange()Is this variant instance of kindtrend_change? -
trendChange
Get thetrend_changevariant value.- Throws:
IllegalStateException- if the current variant is not of thetrend_changekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupChangeTypeDeserializer
-