Record Class CreateTaskRequest
java.lang.Object
java.lang.Record
fr.tiogars.chat.domains.task.models.CreateTaskRequest
public record CreateTaskRequest(@NotBlank String code, @NotBlank String label, String description, TaskStatus status, TaskPriority priority, LocalDate dueDate, String assignedTo, List<@NotNull @Positive Long> tagIds, @Positive Long nomenclatureId)
extends Record
Defines the business data required to create a Task.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateTaskRequest(@NotBlank String code, @NotBlank String label, String description, TaskStatus status, TaskPriority priority, LocalDate dueDate, String assignedTo, List<@NotNull @Positive Long> tagIds, @Positive Long nomenclatureId) Creates an instance of aCreateTaskRequestrecord class.CreateTaskRequest(String code, String label, String description) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignedTorecord component.@NotBlank Stringcode()Returns the value of thecoderecord component.Returns the value of thedescriptionrecord component.dueDate()Returns the value of thedueDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank Stringlabel()Returns the value of thelabelrecord component.@Positive LongReturns the value of thenomenclatureIdrecord component.priority()Returns the value of thepriorityrecord component.status()Returns the value of thestatusrecord component.tagIds()Returns the value of thetagIdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateTaskRequest
public CreateTaskRequest(@NotBlank @NotBlank String code, @NotBlank @NotBlank String label, String description, TaskStatus status, TaskPriority priority, LocalDate dueDate, String assignedTo, List<@NotNull @Positive Long> tagIds, @Positive @Positive Long nomenclatureId) Creates an instance of aCreateTaskRequestrecord class.- Parameters:
code- the value for thecoderecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentstatus- the value for thestatusrecord componentpriority- the value for thepriorityrecord componentdueDate- the value for thedueDaterecord componentassignedTo- the value for theassignedTorecord componenttagIds- the value for thetagIdsrecord componentnomenclatureId- the value for thenomenclatureIdrecord component
-
CreateTaskRequest
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
dueDate
Returns the value of thedueDaterecord component.- Returns:
- the value of the
dueDaterecord component
-
assignedTo
Returns the value of theassignedTorecord component.- Returns:
- the value of the
assignedTorecord component
-
tagIds
-
nomenclatureId
Returns the value of thenomenclatureIdrecord component.- Returns:
- the value of the
nomenclatureIdrecord component
-