Record Class UpdateTaskRequest
java.lang.Object
java.lang.Record
fr.tiogars.chat.domains.task.models.UpdateTaskRequest
public record UpdateTaskRequest(@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 mutable business data of a Task.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateTaskRequest(@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 aUpdateTaskRequestrecord class.UpdateTaskRequest(String label, String description) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassignedTorecord 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
-
UpdateTaskRequest
public UpdateTaskRequest(@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 aUpdateTaskRequestrecord class.- Parameters:
label- 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
-
UpdateTaskRequest
-
-
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). -
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
-