Class Trigger


  • public class Trigger
    extends java.lang.Object
    Class representation of a trigger json object
    • Constructor Summary

      Constructors 
      Constructor Description
      Trigger​(@NotNull java.lang.String name, @NotNull TriggerType trigger)
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Trigger addCondition​(@NotNull java.lang.String name, @NotNull java.lang.Object value)
      Add a condition to this trigger
      java.lang.String getName()
      Get the name of this trigger
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Trigger

        public Trigger​(@NotNull
                       @NotNull java.lang.String name,
                       @NotNull
                       @NotNull TriggerType trigger)
        Default constructor
        Parameters:
        name - Name of the trigger
        trigger - Type of the trigger
    • Method Detail

      • addCondition

        public Trigger addCondition​(@NotNull
                                    @NotNull java.lang.String name,
                                    @NotNull
                                    @NotNull java.lang.Object value)
        Add a condition to this trigger
        Parameters:
        name - Name of this condition
        value - Value of this condition
        Returns:
        Current instance
      • getName

        public java.lang.String getName()
        Get the name of this trigger
        Returns:
        The name of this trigger