Interface ReservationReference

All Superinterfaces:
Reference, ReferenceMixin

public interface ReservationReference extends Reference

Reference to a Reservation.


Example to create an instance using the builder pattern

     ReservationReference reservationReference = ReservationReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

  • Method Details

    • getTypeId

      @NotNull @NotNull ReferenceTypeId getTypeId()
      Description copied from interface: Reference

      Type of referenced resource.

      Specified by:
      getTypeId in interface Reference
      Specified by:
      getTypeId in interface ReferenceMixin
      Returns:
      typeId
    • getObj

      @Valid @Valid Reservation getObj()

      Contains the representation of the expanded Reservation. Only present in responses to requests with Reference Expansion for Reservations.

      Returns:
      obj
    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the referenced Reservation.

      Specified by:
      getId in interface Reference
      Specified by:
      getId in interface ReferenceMixin
      Returns:
      id
    • setObj

      void setObj(Reservation obj)

      Contains the representation of the expanded Reservation. Only present in responses to requests with Reference Expansion for Reservations.

      Parameters:
      obj - value to be set
    • setId

      void setId(String id)

      Unique identifier of the referenced Reservation.

      Specified by:
      setId in interface Reference
      Parameters:
      id - value to be set
    • of

      static ReservationReference of()
      factory method
      Returns:
      instance of ReservationReference
    • of

      factory method to create a shallow copy ReservationReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      Specified by:
      copyDeep in interface Reference
    • deepCopy

      @Nullable static ReservationReference deepCopy(@Nullable ReservationReference template)
      factory method to create a deep copy of ReservationReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ReservationReferenceBuilder builder()
      builder factory method for ReservationReference
      Returns:
      builder
    • builder

      create builder for ReservationReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withReservationReference

      default <T> T withReservationReference(Function<ReservationReference,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ReservationReference> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference