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

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

  • Constructor Details

  • Method Details

    • _kind

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

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

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

      public boolean isTime()
      Is this variant instance of kind time?
    • time

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

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

      protected static void setupSyncDeserializer​(ObjectDeserializer<Sync.Builder> op)