Record Class JobDefinition

java.lang.Object
java.lang.Record
ch.so.agi.gretl.control.manifest.JobDefinition

public record JobDefinition(String id, String name, String projectDir, List<String> tasks, Boolean enabled, String cron, String timezone, OverlapPolicy overlapPolicy, String timeout, List<String> workerLabels, JvmDefinition jvm, List<ParameterDefinition> parameters, List<String> secretRefs, List<TriggerDefinition> triggers, List<NotificationDefinition> notifications) extends Record
  • Constructor Details

    • JobDefinition

      public JobDefinition(String id, String name, String projectDir, List<String> tasks, Boolean enabled, String cron, String timezone, OverlapPolicy overlapPolicy, String timeout, List<String> workerLabels, JvmDefinition jvm, List<ParameterDefinition> parameters, List<String> secretRefs, List<TriggerDefinition> triggers, List<NotificationDefinition> notifications)
      Creates an instance of a JobDefinition record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      projectDir - the value for the projectDir record component
      tasks - the value for the tasks record component
      enabled - the value for the enabled record component
      cron - the value for the cron record component
      timezone - the value for the timezone record component
      overlapPolicy - the value for the overlapPolicy record component
      timeout - the value for the timeout record component
      workerLabels - the value for the workerLabels record component
      jvm - the value for the jvm record component
      parameters - the value for the parameters record component
      secretRefs - the value for the secretRefs record component
      triggers - the value for the triggers record component
      notifications - the value for the notifications record component
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • 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.
    • id

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

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

      public String projectDir()
      Returns the value of the projectDir record component.
      Returns:
      the value of the projectDir record component
    • tasks

      public List<String> tasks()
      Returns the value of the tasks record component.
      Returns:
      the value of the tasks record component
    • enabled

      public Boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • cron

      public String cron()
      Returns the value of the cron record component.
      Returns:
      the value of the cron record component
    • timezone

      public String timezone()
      Returns the value of the timezone record component.
      Returns:
      the value of the timezone record component
    • overlapPolicy

      public OverlapPolicy overlapPolicy()
      Returns the value of the overlapPolicy record component.
      Returns:
      the value of the overlapPolicy record component
    • timeout

      public String timeout()
      Returns the value of the timeout record component.
      Returns:
      the value of the timeout record component
    • workerLabels

      public List<String> workerLabels()
      Returns the value of the workerLabels record component.
      Returns:
      the value of the workerLabels record component
    • jvm

      public JvmDefinition jvm()
      Returns the value of the jvm record component.
      Returns:
      the value of the jvm record component
    • parameters

      public List<ParameterDefinition> parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • secretRefs

      public List<String> secretRefs()
      Returns the value of the secretRefs record component.
      Returns:
      the value of the secretRefs record component
    • triggers

      public List<TriggerDefinition> triggers()
      Returns the value of the triggers record component.
      Returns:
      the value of the triggers record component
    • notifications

      public List<NotificationDefinition> notifications()
      Returns the value of the notifications record component.
      Returns:
      the value of the notifications record component