Interface ReviewCreatedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, Versioned<Message>

public interface ReviewCreatedMessage extends Message

Generated after a successful Create Review request.


Example to create an instance using the builder pattern

     ReviewCreatedMessage reviewCreatedMessage = ReviewCreatedMessage.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .sequenceNumber(0.3)
             .resource(resourceBuilder -> resourceBuilder)
             .resourceVersion(0.3)
             .review(reviewBuilder -> reviewBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getReview

      @NotNull @Valid @NotNull @Valid Review getReview()

      Review that was created.

      Returns:
      review
    • setReview

      void setReview(Review review)

      Review that was created.

      Parameters:
      review - value to be set
    • of

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

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

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

      static ReviewCreatedMessageBuilder builder()
      builder factory method for ReviewCreatedMessage
      Returns:
      builder
    • builder

      create builder for ReviewCreatedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withReviewCreatedMessage

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