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

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

  • Method Details

    • _kind

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

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

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

      public boolean isArray()
      Is this variant instance of kind array?
    • array

      public java.util.List<ArrayPercentilesItem> array()
      Get the array variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the array kind.
    • isKeyed

      public boolean isKeyed()
      Is this variant instance of kind keyed?
    • keyed

      public java.util.Map<java.lang.String,​java.lang.String> keyed()
      Get the keyed variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the keyed kind.
    • serialize

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