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:
  • Field Details

  • Constructor Details

  • Method Details

    • _kind

      public final ChangeType.Kind _kind()
      Description copied from interface: TaggedUnion
      Get the of the kind of variant held by this object.
      Specified by:
      _kind in interface TaggedUnion<ChangeType.Kind,Object>
      Returns:
      the variant kind
    • _get

      public final Object _get()
      Specified by:
      _get in interface TaggedUnion<ChangeType.Kind,Object>
    • of

    • isDip

      public boolean isDip()
      Is this variant instance of kind dip?
    • dip

      public Dip dip()
      Get the dip variant value.
      Throws:
      IllegalStateException - if the current variant is not of the dip kind.
    • isDistributionChange

      public boolean isDistributionChange()
      Is this variant instance of kind distribution_change?
    • distributionChange

      public DistributionChange distributionChange()
      Get the distribution_change variant value.
      Throws:
      IllegalStateException - if the current variant is not of the distribution_change kind.
    • isIndeterminable

      public boolean isIndeterminable()
      Is this variant instance of kind indeterminable?
    • indeterminable

      public Indeterminable indeterminable()
      Get the indeterminable variant value.
      Throws:
      IllegalStateException - if the current variant is not of the indeterminable kind.
    • isNonStationary

      public boolean isNonStationary()
      Is this variant instance of kind non_stationary?
    • nonStationary

      public NonStationary nonStationary()
      Get the non_stationary variant value.
      Throws:
      IllegalStateException - if the current variant is not of the non_stationary kind.
    • isSpike

      public boolean isSpike()
      Is this variant instance of kind spike?
    • spike

      public Spike spike()
      Get the spike variant value.
      Throws:
      IllegalStateException - if the current variant is not of the spike kind.
    • isStationary

      public boolean isStationary()
      Is this variant instance of kind stationary?
    • stationary

      public Stationary stationary()
      Get the stationary variant value.
      Throws:
      IllegalStateException - if the current variant is not of the stationary kind.
    • isStepChange

      public boolean isStepChange()
      Is this variant instance of kind step_change?
    • stepChange

      public StepChange stepChange()
      Get the step_change variant value.
      Throws:
      IllegalStateException - if the current variant is not of the step_change kind.
    • isTrendChange

      public boolean isTrendChange()
      Is this variant instance of kind trend_change?
    • trendChange

      public TrendChange trendChange()
      Get the trend_change variant value.
      Throws:
      IllegalStateException - if the current variant is not of the trend_change kind.
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupChangeTypeDeserializer

      protected static void setupChangeTypeDeserializer(ObjectDeserializer<ChangeType.Builder> op)