Package akka.javasdk.agent.task
Record Class TaskEvent.TaskCreated
- All Implemented Interfaces:
TaskEvent
- Enclosing interface:
TaskEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.agent.task.TaskEvent
TaskEvent.TaskAssigned, TaskEvent.TaskCancelled, TaskEvent.TaskCompleted, TaskEvent.TaskCreated, TaskEvent.TaskFailed, TaskEvent.TaskReassigned, TaskEvent.TaskResultRejected, TaskEvent.TaskStarted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentsrecord component.Returns the value of thedependencyTaskIdsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionsrecord component.name()Returns the value of thenamerecord component.Returns the value of theresultTypeNamerecord component.Returns the value of theruleClassNamesrecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskCreated
public TaskCreated(String taskId, String name, String description, String instructions, String resultTypeName, List<String> dependencyTaskIds, List<TaskAttachment> attachments, List<String> ruleClassNames) Creates an instance of aTaskCreatedrecord class.- Parameters:
taskId- the value for thetaskIdrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentinstructions- the value for theinstructionsrecord componentresultTypeName- the value for theresultTypeNamerecord componentdependencyTaskIds- the value for thedependencyTaskIdsrecord componentattachments- the value for theattachmentsrecord componentruleClassNames- the value for theruleClassNamesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
resultTypeName
Returns the value of theresultTypeNamerecord component.- Returns:
- the value of the
resultTypeNamerecord component
-
dependencyTaskIds
Returns the value of thedependencyTaskIdsrecord component.- Returns:
- the value of the
dependencyTaskIdsrecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-
ruleClassNames
Returns the value of theruleClassNamesrecord component.- Returns:
- the value of the
ruleClassNamesrecord component
-