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 benullstartNow- 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 ornullif 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 aTaskScheduleUserDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependencyIdsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedDependencyActionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenotifyUponCompletionEmailAddressesrecord component.Returns the value of thenotifyUponErrorEmailAddressesrecord component.Returns the value of therecurringDateTimerecord component.Returns the value of thestartDateTimerecord component.booleanstartNow()Returns the value of thestartNowrecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()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 aTaskScheduleUserDatarecord class.- Parameters:
taskId- the value for thetaskIdrecord componentstartNow- the value for thestartNowrecord componentstartDateTime- the value for thestartDateTimerecord componentrecurringDateTime- the value for therecurringDateTimerecord componentdependencyIds- the value for thedependencyIdsrecord componentfailedDependencyAction- the value for thefailedDependencyActionrecord componentnotifyUponCompletionEmailAddresses- the value for thenotifyUponCompletionEmailAddressesrecord componentnotifyUponErrorEmailAddresses- the value for thenotifyUponErrorEmailAddressesrecord componentdescription- the value for thedescriptionrecord 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 thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
startNow
public boolean startNow()Returns the value of thestartNowrecord component.- Returns:
- the value of the
startNowrecord component
-
startDateTime
Returns the value of thestartDateTimerecord component.- Returns:
- the value of the
startDateTimerecord component
-
recurringDateTime
Returns the value of therecurringDateTimerecord component.- Returns:
- the value of the
recurringDateTimerecord component
-
dependencyIds
Returns the value of thedependencyIdsrecord component.- Returns:
- the value of the
dependencyIdsrecord component
-
failedDependencyAction
Returns the value of thefailedDependencyActionrecord component.- Returns:
- the value of the
failedDependencyActionrecord component
-
notifyUponCompletionEmailAddresses
Returns the value of thenotifyUponCompletionEmailAddressesrecord component.- Returns:
- the value of the
notifyUponCompletionEmailAddressesrecord component
-
notifyUponErrorEmailAddresses
Returns the value of thenotifyUponErrorEmailAddressesrecord component.- Returns:
- the value of the
notifyUponErrorEmailAddressesrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-