Enum Class TriggerType

java.lang.Object
java.lang.Enum<TriggerType>
com.algolia.model.ingestion.TriggerType
All Implemented Interfaces:
Serializable, Comparable<TriggerType>, Constable

public enum TriggerType extends Enum<TriggerType>
Task trigger, describing when a task should run. - `onDemand`. Manually trigger the task with the `/run` endpoint. - `schedule`. Regularly trigger the task on a `cron` schedule. - `subscription`. Trigger the task after an event is received, such as, a webhook. - `streaming`. Run the task continuously.
  • Enum Constant Details

    • ON_DEMAND

      public static final TriggerType ON_DEMAND
    • SCHEDULE

      public static final TriggerType SCHEDULE
    • SUBSCRIPTION

      public static final TriggerType SUBSCRIPTION
    • STREAMING

      public static final TriggerType STREAMING
  • Method Details

    • values

      public static TriggerType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TriggerType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TriggerType>
    • fromValue

      public static TriggerType fromValue(String value)