Interface ReviewReference

All Superinterfaces:
Identifiable<Review>, IdentifiableObjHolder<Review>, Reference, ReferenceMixin

public interface ReviewReference extends Reference, Identifiable<Review>, IdentifiableObjHolder<Review>

Reference to a Review.


Example to create an instance using the builder pattern

     ReviewReference reviewReference = ReviewReference.builder()
             .id("{id}")
             .build()
 
  • Field Details

  • Method Details

    • getObj

      @Valid @Valid Review getObj()

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

      Specified by:
      getObj in interface IdentifiableObjHolder<Review>
      Returns:
      obj
    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the referenced Review.

      Specified by:
      getId in interface Identifiable<Review>
      Specified by:
      getId in interface Reference
      Specified by:
      getId in interface ReferenceMixin
      Returns:
      id
    • setObj

      void setObj(Review obj)

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

      Parameters:
      obj - value to be set
    • setId

      void setId(String id)

      Unique identifier of the referenced Review.

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

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

      static ReviewReference of(ReviewReference template)
      factory method to create a shallow copy ReviewReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static ReviewReferenceBuilder builder()
      builder factory method for ReviewReference
      Returns:
      builder
    • builder

      static ReviewReferenceBuilder builder(ReviewReference template)
      create builder for ReviewReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withReviewReference

      default <T> T withReviewReference(Function<ReviewReference,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<ReviewReference> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference