Interface ReviewSetRatingAction

All Superinterfaces:
ResourceUpdateAction<ReviewUpdateAction>, ReviewUpdateAction

public interface ReviewSetRatingAction extends ReviewUpdateAction

This update action produces the ReviewRatingSet Message.


Example to create an instance using the builder pattern

     ReviewSetRatingAction reviewSetRatingAction = ReviewSetRatingAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getRating

      Integer getRating()

      Value to set. If empty, any existing value will be removed.

      Returns:
      rating
    • setRating

      void setRating(Integer rating)

      Value to set. If empty, any existing value will be removed.

      Parameters:
      rating - value to be set
    • of

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

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

      factory method to create a deep copy of ReviewSetRatingAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ReviewSetRatingActionBuilder builder()
      builder factory method for ReviewSetRatingAction
      Returns:
      builder
    • builder

      create builder for ReviewSetRatingAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withReviewSetRatingAction

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