Interface ReviewCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create Review request.
Example to create an instance using the builder pattern
ReviewCreatedMessagePayload reviewCreatedMessagePayload = ReviewCreatedMessagePayload.builder()
.review(reviewBuilder -> reviewBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ReviewCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ReviewCreatedMessagePayloadbuilder
(ReviewCreatedMessagePayload template) create builder for ReviewCreatedMessagePayload instancestatic ReviewCreatedMessagePayload
deepCopy
(ReviewCreatedMessagePayload template) factory method to create a deep copy of ReviewCreatedMessagePayload@NotNull @Valid Review
Review that was created.static ReviewCreatedMessagePayload
of()
factory methodstatic ReviewCreatedMessagePayload
of
(ReviewCreatedMessagePayload template) factory method to create a shallow copy ReviewCreatedMessagePayloadvoid
Review that was created.static com.fasterxml.jackson.core.type.TypeReference<ReviewCreatedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
REVIEW_CREATED
discriminator value for ReviewCreatedMessagePayload- See Also:
-
-
Method Details
-
getReview
Review that was created.
- Returns:
- review
-
setReview
Review that was created.
- Parameters:
review
- value to be set
-
of
factory method- Returns:
- instance of ReviewCreatedMessagePayload
-
of
factory method to create a shallow copy ReviewCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ReviewCreatedMessagePayload deepCopy(@Nullable ReviewCreatedMessagePayload template) factory method to create a deep copy of ReviewCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewCreatedMessagePayload- Returns:
- builder
-
builder
create builder for ReviewCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReviewCreatedMessagePayload
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-