Class Transform

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

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

  • Constructor Details

  • Method Details

    • _kind

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

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

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

      public boolean isChain()
      Is this variant instance of kind chain?
    • chain

      public ChainTransform chain()
      Get the chain variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the chain kind.
    • isScript

      public boolean isScript()
      Is this variant instance of kind script?
    • script

      public ScriptTransform script()
      Get the script variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the script kind.
    • isSearch

      public boolean isSearch()
      Is this variant instance of kind search?
    • search

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

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

      protected static void setupTransformDeserializer​(ObjectDeserializer<Transform.Builder> op)