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>
The type of the task reflect how it can be used: - onDemand: a task that runs manually - schedule: a task that runs regularly, following a given cron expression - subscription: a task that runs after a subscription event is received from an integration (e.g. Webhook).
  • Enum Constant Details

    • ON_DEMAND

      public static final TriggerType ON_DEMAND
    • SCHEDULE

      public static final TriggerType SCHEDULE
    • SUBSCRIPTION

      public static final TriggerType SUBSCRIPTION
  • 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)