Record Class TriggerTypes.PersistedTriggerAction

java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.TriggerTypes.PersistedTriggerAction
Enclosing class:
TriggerTypes

public static record TriggerTypes.PersistedTriggerAction(String type, String name, Map<String,Object> config, Map<String,Object> condition, TriggerTypes.TriggerTiming timing, TriggerTypes.TriggerRetry retry, Long timeout, Boolean continueOnError) extends Record
Persisted/API shape: config holds type-specific fields (TS IPersistedTriggerAction).
  • Constructor Details

    • PersistedTriggerAction

      public PersistedTriggerAction(String type, String name, Map<String,Object> config, Map<String,Object> condition, TriggerTypes.TriggerTiming timing, TriggerTypes.TriggerRetry retry, Long timeout, Boolean continueOnError)
      Creates an instance of a PersistedTriggerAction record class.
      Parameters:
      type - the value for the type record component
      name - the value for the name record component
      config - the value for the config record component
      condition - the value for the condition record component
      timing - the value for the timing record component
      retry - the value for the retry record component
      timeout - the value for the timeout record component
      continueOnError - the value for the continueOnError record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • config

      public Map<String,Object> config()
      Returns the value of the config record component.
      Returns:
      the value of the config record component
    • condition

      public Map<String,Object> condition()
      Returns the value of the condition record component.
      Returns:
      the value of the condition record component
    • timing

      public TriggerTypes.TriggerTiming timing()
      Returns the value of the timing record component.
      Returns:
      the value of the timing record component
    • retry

      public TriggerTypes.TriggerRetry retry()
      Returns the value of the retry record component.
      Returns:
      the value of the retry record component
    • timeout

      public Long timeout()
      Returns the value of the timeout record component.
      Returns:
      the value of the timeout record component
    • continueOnError

      public Boolean continueOnError()
      Returns the value of the continueOnError record component.
      Returns:
      the value of the continueOnError record component