Package ch.so.agi.gretl.control.manifest
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 Summary
ConstructorsConstructorDescriptionJobDefinition(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 aJobDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncron()Returns the value of thecronrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanjvm()Returns the value of thejvmrecord component.name()Returns the value of thenamerecord component.Returns the value of thenotificationsrecord component.Returns the value of theoverlapPolicyrecord component.Returns the value of theparametersrecord component.Returns the value of theprojectDirrecord component.Returns the value of thesecretRefsrecord component.tasks()Returns the value of thetasksrecord component.timeout()Returns the value of thetimeoutrecord component.timezone()Returns the value of thetimezonerecord component.final StringtoString()Returns a string representation of this record class.triggers()Returns the value of thetriggersrecord component.Returns the value of theworkerLabelsrecord component.
-
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 aJobDefinitionrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentprojectDir- the value for theprojectDirrecord componenttasks- the value for thetasksrecord componentenabled- the value for theenabledrecord componentcron- the value for thecronrecord componenttimezone- the value for thetimezonerecord componentoverlapPolicy- the value for theoverlapPolicyrecord componenttimeout- the value for thetimeoutrecord componentworkerLabels- the value for theworkerLabelsrecord componentjvm- the value for thejvmrecord componentparameters- the value for theparametersrecord componentsecretRefs- the value for thesecretRefsrecord componenttriggers- the value for thetriggersrecord componentnotifications- the value for thenotificationsrecord component
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
projectDir
Returns the value of theprojectDirrecord component.- Returns:
- the value of the
projectDirrecord component
-
tasks
Returns the value of thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
cron
Returns the value of thecronrecord component.- Returns:
- the value of the
cronrecord component
-
timezone
Returns the value of thetimezonerecord component.- Returns:
- the value of the
timezonerecord component
-
overlapPolicy
Returns the value of theoverlapPolicyrecord component.- Returns:
- the value of the
overlapPolicyrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
workerLabels
Returns the value of theworkerLabelsrecord component.- Returns:
- the value of the
workerLabelsrecord component
-
jvm
Returns the value of thejvmrecord component.- Returns:
- the value of the
jvmrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
secretRefs
Returns the value of thesecretRefsrecord component.- Returns:
- the value of the
secretRefsrecord component
-
triggers
Returns the value of thetriggersrecord component.- Returns:
- the value of the
triggersrecord component
-
notifications
Returns the value of thenotificationsrecord component.- Returns:
- the value of the
notificationsrecord component
-