Package app.ductape.sdk.database.types
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 Summary
ConstructorsConstructorDescriptionPersistedTriggerAction(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 aPersistedTriggerActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord component.config()Returns the value of theconfigrecord component.Returns the value of thecontinueOnErrorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.retry()Returns the value of theretryrecord component.timeout()Returns the value of thetimeoutrecord component.timing()Returns the value of thetimingrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
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 aPersistedTriggerActionrecord class.- Parameters:
type- the value for thetyperecord componentname- the value for thenamerecord componentconfig- the value for theconfigrecord componentcondition- the value for theconditionrecord componenttiming- the value for thetimingrecord componentretry- the value for theretryrecord componenttimeout- the value for thetimeoutrecord componentcontinueOnError- the value for thecontinueOnErrorrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
timing
Returns the value of thetimingrecord component.- Returns:
- the value of the
timingrecord component
-
retry
Returns the value of theretryrecord component.- Returns:
- the value of the
retryrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
continueOnError
Returns the value of thecontinueOnErrorrecord component.- Returns:
- the value of the
continueOnErrorrecord component
-