Package org.opends.server.tools.tasks
Record Class TaskScheduleInformation.TaskScheduleUserData
java.lang.Object
java.lang.Record
org.opends.server.tools.tasks.TaskScheduleInformation.TaskScheduleUserData
- Record Components:
taskId
- an arbitrary task id assigned to this task. Can benull
startNow
- whether the task must be executed immediatelystartDateTime
- the date/time at which this task should be scheduled to startrecurringDateTime
- the date/time pattern for recurring task scheduledependencyIds
- list of task IDs upon which this task is dependentfailedDependencyAction
- the action to take should one of the dependent tasks failnotifyUponCompletionEmailAddresses
- list of email addresses to which an email will be sent when this task completesnotifyUponErrorEmailAddresses
- list of email addresses to which an email will be sent if this task encounters an error during executiondescription
- the description of this task ornull
if there is none
- Enclosing class:
- TaskScheduleInformation
public static record TaskScheduleInformation.TaskScheduleUserData(String taskId, boolean startNow, Instant startDateTime, String recurringDateTime, Collection<String> dependencyIds, FailedDependencyAction failedDependencyAction, Collection<String> notifyUponCompletionEmailAddresses, Collection<String> notifyUponErrorEmailAddresses, String description)
extends Record
A generic data structure that contains the data that the user provided to schedule a task.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.TaskScheduleUserData
(String taskId, boolean startNow, Instant startDateTime, String recurringDateTime, Collection<String> dependencyIds, FailedDependencyAction failedDependencyAction, Collection<String> notifyUponCompletionEmailAddresses, Collection<String> notifyUponErrorEmailAddresses, String description) Creates an instance of aTaskScheduleUserData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependencyIds
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefailedDependencyAction
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenotifyUponCompletionEmailAddresses
record component.Returns the value of thenotifyUponErrorEmailAddresses
record component.Returns the value of therecurringDateTime
record component.Returns the value of thestartDateTime
record component.boolean
startNow()
Returns the value of thestartNow
record component.taskId()
Returns the value of thetaskId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TaskScheduleUserData
public TaskScheduleUserData()Default constructor. -
TaskScheduleUserData
public TaskScheduleUserData(String taskId, boolean startNow, Instant startDateTime, String recurringDateTime, Collection<String> dependencyIds, FailedDependencyAction failedDependencyAction, Collection<String> notifyUponCompletionEmailAddresses, Collection<String> notifyUponErrorEmailAddresses, String description) Creates an instance of aTaskScheduleUserData
record class.- Parameters:
taskId
- the value for thetaskId
record componentstartNow
- the value for thestartNow
record componentstartDateTime
- the value for thestartDateTime
record componentrecurringDateTime
- the value for therecurringDateTime
record componentdependencyIds
- the value for thedependencyIds
record componentfailedDependencyAction
- the value for thefailedDependencyAction
record componentnotifyUponCompletionEmailAddresses
- the value for thenotifyUponCompletionEmailAddresses
record componentnotifyUponErrorEmailAddresses
- the value for thenotifyUponErrorEmailAddresses
record componentdescription
- the value for thedescription
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
taskId
Returns the value of thetaskId
record component.- Returns:
- the value of the
taskId
record component
-
startNow
public boolean startNow()Returns the value of thestartNow
record component.- Returns:
- the value of the
startNow
record component
-
startDateTime
Returns the value of thestartDateTime
record component.- Returns:
- the value of the
startDateTime
record component
-
recurringDateTime
Returns the value of therecurringDateTime
record component.- Returns:
- the value of the
recurringDateTime
record component
-
dependencyIds
Returns the value of thedependencyIds
record component.- Returns:
- the value of the
dependencyIds
record component
-
failedDependencyAction
Returns the value of thefailedDependencyAction
record component.- Returns:
- the value of the
failedDependencyAction
record component
-
notifyUponCompletionEmailAddresses
Returns the value of thenotifyUponCompletionEmailAddresses
record component.- Returns:
- the value of the
notifyUponCompletionEmailAddresses
record component
-
notifyUponErrorEmailAddresses
Returns the value of thenotifyUponErrorEmailAddresses
record component.- Returns:
- the value of the
notifyUponErrorEmailAddresses
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-