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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ReviewCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ReviewCreatedMessagePayloadbuilder(ReviewCreatedMessagePayload template) create builder for ReviewCreatedMessagePayload instancecopyDeep()static ReviewCreatedMessagePayloaddeepCopy(ReviewCreatedMessagePayload template) factory method to create a deep copy of ReviewCreatedMessagePayload@NotNull @Valid ReviewReview that was created.static ReviewCreatedMessagePayloadof()factory methodstatic ReviewCreatedMessagePayloadof(ReviewCreatedMessagePayload template) factory method to create a shallow copy ReviewCreatedMessagePayloadvoidReview that was created.static com.fasterxml.jackson.core.type.TypeReference<ReviewCreatedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods 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
-
copyDeep
ReviewCreatedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-