Record Class ProcessManagementService.ScheduleRequest
java.lang.Object
java.lang.Record
org.chenile.orchestrator.process.configuration.management.ProcessManagementService.ScheduleRequest
- Enclosing class:
ProcessManagementService
public static record ProcessManagementService.ScheduleRequest(String name, String cronExpression, String timezone, boolean enabled, ProcessDto payload)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thecronExpressionrecord component.private final booleanThe field for theenabledrecord component.private final StringThe field for thenamerecord component.private final ProcessDtoThe field for thepayloadrecord component.private final StringThe field for thetimezonerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionScheduleRequest(String name, String cronExpression, String timezone, boolean enabled, ProcessDto payload) Creates an instance of aScheduleRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecronExpressionrecord component.booleanenabled()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.name()Returns the value of thenamerecord component.payload()Returns the value of thepayloadrecord component.timezone()Returns the value of thetimezonerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
cronExpression
The field for thecronExpressionrecord component. -
timezone
The field for thetimezonerecord component. -
enabled
private final boolean enabledThe field for theenabledrecord component. -
payload
The field for thepayloadrecord component.
-
-
Constructor Details
-
ScheduleRequest
public ScheduleRequest(String name, String cronExpression, String timezone, boolean enabled, ProcessDto payload) Creates an instance of aScheduleRequestrecord class.- Parameters:
name- the value for thenamerecord componentcronExpression- the value for thecronExpressionrecord componenttimezone- the value for thetimezonerecord componentenabled- the value for theenabledrecord componentpayload- the value for thepayloadrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
cronExpression
Returns the value of thecronExpressionrecord component.- Returns:
- the value of the
cronExpressionrecord component
-
timezone
Returns the value of thetimezonerecord component.- Returns:
- the value of the
timezonerecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
CHENILE