Record Class UpdateAssignmentRequest

java.lang.Object
java.lang.Record
com.nicholasalfonso.lato.dto.request.UpdateAssignmentRequest
Record Components:
customTitle - optional user-defined title override
customDescription - optional user-defined description override
customDueDate - optional user-defined due date override
customDueTime - optional user-defined due time override
priority - optional assignment priority level
noteContent - 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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • customTitle

      public String customTitle()
      Returns the value of the customTitle record component.
      Returns:
      the value of the customTitle record component
    • customDescription

      public String customDescription()
      Returns the value of the customDescription record component.
      Returns:
      the value of the customDescription record component
    • customDueDate

      public LocalDate customDueDate()
      Returns the value of the customDueDate record component.
      Returns:
      the value of the customDueDate record component
    • customDueTime

      public LocalTime customDueTime()
      Returns the value of the customDueTime record component.
      Returns:
      the value of the customDueTime record component
    • priority

      public Assignment.AssignmentPriority priority()
      Returns the value of the priority record component.
      Returns:
      the value of the priority record component
    • noteContent

      public String noteContent()
      Returns the value of the noteContent record component.
      Returns:
      the value of the noteContent record component