All Implemented Interfaces:
JsonpSerializable, TaggedUnion<Trigger.Kind,​java.lang.Object>

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

  • Constructor Details

  • Method Details

    • _kind

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

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

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

      public boolean isSchedule()
      Is this variant instance of kind schedule?
    • schedule

      public Schedule schedule()
      Get the schedule variant value.
      java.lang.IllegalStateException - if the current variant is not of the schedule kind.
    • serialize

      public void serialize​( generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • setupTriggerDeserializer

      protected static void setupTriggerDeserializer​(ObjectDeserializer<Trigger.Builder> op)