Record Class ReservationMultiActionRequest

java.lang.Object
java.lang.Record
de.gustavblass.fsu.fmi.roombooking.dto.ReservationMultiActionRequest
Record Components:
action - The operation that shall be performed for all of the ids.
ids - The identifiers of the Reservations that shall be subject to the action.
confirm - Whether the user has explicitly approved of the action, in order to rule out a misunderstanding.

public record ReservationMultiActionRequest(@NonNull String action, @NonNull Long[] ids, @Nullable Boolean confirm) extends Record

Represents a POST request made to

invalid reference
ReservationAdminController#performMultiAction(ReservationMultiActionRequest)
.
  • Field Details

    • action

      @NonNull private final @NonNull String action
      The field for the action record component.
    • ids

      @NonNull private final @NonNull Long[] ids
      The field for the ids record component.
    • confirm

      @Nullable private final @Nullable Boolean confirm
      The field for the confirm record component.
  • Constructor Details

    • ReservationMultiActionRequest

      public ReservationMultiActionRequest(@NonNull @NonNull String action, @NonNull @NonNull Long[] ids, @Nullable @Nullable Boolean confirm)
      Creates an instance of a ReservationMultiActionRequest record class.
      Parameters:
      action - the value for the action record component
      ids - the value for the ids record component
      confirm - the value for the confirm record component
  • 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.
    • action

      @NonNull public @NonNull String action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • ids

      @NonNull public @NonNull Long[] ids()
      Returns the value of the ids record component.
      Returns:
      the value of the ids record component
    • confirm

      @Nullable public @Nullable Boolean confirm()
      Returns the value of the confirm record component.
      Returns:
      the value of the confirm record component