java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.Intervals
All Implemented Interfaces:
IntervalsFilterVariant, JsonpSerializable, TaggedUnion<Intervals.Kind,​java.lang.Object>

@JsonpDeserializable
public class Intervals
extends java.lang.Object
implements TaggedUnion<Intervals.Kind,​java.lang.Object>, IntervalsFilterVariant, JsonpSerializable
See Also:
API specification
  • Field Details

  • Constructor Details

  • Method Details

    • _intervalsFilterKind

      public IntervalsFilter.Kind _intervalsFilterKind()
      IntervalsFilter variant kind.
      Specified by:
      _intervalsFilterKind in interface IntervalsFilterVariant
    • _kind

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

      public final java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<Intervals.Kind,​java.lang.Object>
    • of

      public static Intervals of​(java.util.function.Function<Intervals.Builder,​ObjectBuilder<Intervals>> fn)
    • isAllOf

      public boolean isAllOf()
      Is this variant instance of kind all_of?
    • allOf

      public IntervalsAllOf allOf()
      Get the all_of variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the all_of kind.
    • isAnyOf

      public boolean isAnyOf()
      Is this variant instance of kind any_of?
    • anyOf

      public IntervalsAnyOf anyOf()
      Get the any_of variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the any_of kind.
    • isFuzzy

      public boolean isFuzzy()
      Is this variant instance of kind fuzzy?
    • fuzzy

      public IntervalsFuzzy fuzzy()
      Get the fuzzy variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the fuzzy kind.
    • isMatch

      public boolean isMatch()
      Is this variant instance of kind match?
    • match

      public IntervalsMatch match()
      Get the match variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the match kind.
    • isPrefix

      public boolean isPrefix()
      Is this variant instance of kind prefix?
    • prefix

      public IntervalsPrefix prefix()
      Get the prefix variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the prefix kind.
    • isWildcard

      public boolean isWildcard()
      Is this variant instance of kind wildcard?
    • wildcard

      public IntervalsWildcard wildcard()
      Get the wildcard variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the wildcard kind.
    • serialize

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

      protected static void setupIntervalsDeserializer​(ObjectDeserializer<Intervals.Builder> op)