Record Class UpdateAssignmentRequest
java.lang.Object
java.lang.Record
com.nicholasalfonso.lato.dto.request.UpdateAssignmentRequest
- Record Components:
customTitle- optional user-defined title overridecustomDescription- optional user-defined description overridecustomDueDate- optional user-defined due date overridecustomDueTime- optional user-defined due time overridepriority- optional assignment priority levelnoteContent- optional note text to save with the assignment
public record UpdateAssignmentRequest(String customTitle, String customDescription, LocalDate customDueDate, LocalTime customDueTime, Assignment.AssignmentPriority priority, String noteContent)
extends Record
Request body for updating assignment details and optional note content.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateAssignmentRequest(String customTitle, String customDescription, LocalDate customDueDate, LocalTime customDueTime, Assignment.AssignmentPriority priority, String noteContent) Creates an instance of aUpdateAssignmentRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecustomDescriptionrecord component.Returns the value of thecustomDueDaterecord component.Returns the value of thecustomDueTimerecord component.Returns the value of thecustomTitlerecord 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 thenoteContentrecord component.priority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpdateAssignmentRequest
public UpdateAssignmentRequest(String customTitle, String customDescription, LocalDate customDueDate, LocalTime customDueTime, Assignment.AssignmentPriority priority, String noteContent) Creates an instance of aUpdateAssignmentRequestrecord class.- Parameters:
customTitle- the value for thecustomTitlerecord componentcustomDescription- the value for thecustomDescriptionrecord componentcustomDueDate- the value for thecustomDueDaterecord componentcustomDueTime- the value for thecustomDueTimerecord componentpriority- the value for thepriorityrecord componentnoteContent- the value for thenoteContentrecord 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). -
customTitle
Returns the value of thecustomTitlerecord component.- Returns:
- the value of the
customTitlerecord component
-
customDescription
Returns the value of thecustomDescriptionrecord component.- Returns:
- the value of the
customDescriptionrecord component
-
customDueDate
Returns the value of thecustomDueDaterecord component.- Returns:
- the value of the
customDueDaterecord component
-
customDueTime
Returns the value of thecustomDueTimerecord component.- Returns:
- the value of the
customDueTimerecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
noteContent
Returns the value of thenoteContentrecord component.- Returns:
- the value of the
noteContentrecord component
-