Interface ReviewStateTransitionMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Transition State update action.
Example to create an instance using the builder pattern
ReviewStateTransitionMessagePayload reviewStateTransitionMessagePayload = ReviewStateTransitionMessagePayload.builder()
.newState(newStateBuilder -> newStateBuilder)
.oldIncludedInStatistics(true)
.newIncludedInStatistics(true)
.force(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ReviewStateTransitionMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ReviewStateTransitionMessagePayloadbuilder
(ReviewStateTransitionMessagePayload template) create builder for ReviewStateTransitionMessagePayload instancedeepCopy
(ReviewStateTransitionMessagePayload template) factory method to create a deep copy of ReviewStateTransitionMessagePayload@NotNull Boolean
getForce()
Whether State transition validations were turned off during the Transition State update action.@NotNull Boolean
Whether the new Review was taken into account in the rating statistics of the target after the state transition.@NotNull @Valid StateReference
State of the Review after the Transition State update action.@NotNull Boolean
Whether the old Review was taken into account in the rating statistics of the target before the state transition.@Valid StateReference
State of the Review before the Transition State update action.@Valid Reference
Reference to the resource that the Review belongs to.of()
factory methodof
(ReviewStateTransitionMessagePayload template) factory method to create a shallow copy ReviewStateTransitionMessagePayloadvoid
Whether State transition validations were turned off during the Transition State update action.void
setNewIncludedInStatistics
(Boolean newIncludedInStatistics) Whether the new Review was taken into account in the rating statistics of the target after the state transition.void
setNewState
(StateReference newState) State of the Review after the Transition State update action.void
setOldIncludedInStatistics
(Boolean oldIncludedInStatistics) Whether the old Review was taken into account in the rating statistics of the target before the state transition.void
setOldState
(StateReference oldState) State of the Review before the Transition State update action.void
Reference to the resource that the Review belongs to.static com.fasterxml.jackson.core.type.TypeReference<ReviewStateTransitionMessagePayload>
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_STATE_TRANSITION
discriminator value for ReviewStateTransitionMessagePayload- See Also:
-
-
Method Details
-
getOldState
State of the Review before the Transition State update action.
- Returns:
- oldState
-
getNewState
State of the Review after the Transition State update action.
- Returns:
- newState
-
getOldIncludedInStatistics
Whether the old Review was taken into account in the rating statistics of the target before the state transition.
- Returns:
- oldIncludedInStatistics
-
getNewIncludedInStatistics
Whether the new Review was taken into account in the rating statistics of the target after the state transition.
- Returns:
- newIncludedInStatistics
-
getTarget
Reference to the resource that the Review belongs to.
- Returns:
- target
-
getForce
Whether State transition validations were turned off during the Transition State update action.
- Returns:
- force
-
setOldState
State of the Review before the Transition State update action.
- Parameters:
oldState
- value to be set
-
setNewState
State of the Review after the Transition State update action.
- Parameters:
newState
- value to be set
-
setOldIncludedInStatistics
Whether the old Review was taken into account in the rating statistics of the target before the state transition.
- Parameters:
oldIncludedInStatistics
- value to be set
-
setNewIncludedInStatistics
Whether the new Review was taken into account in the rating statistics of the target after the state transition.
- Parameters:
newIncludedInStatistics
- value to be set
-
setTarget
Reference to the resource that the Review belongs to.
- Parameters:
target
- value to be set
-
setForce
Whether State transition validations were turned off during the Transition State update action.
- Parameters:
force
- value to be set
-
of
factory method- Returns:
- instance of ReviewStateTransitionMessagePayload
-
of
factory method to create a shallow copy ReviewStateTransitionMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ReviewStateTransitionMessagePayload deepCopy(@Nullable ReviewStateTransitionMessagePayload template) factory method to create a deep copy of ReviewStateTransitionMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewStateTransitionMessagePayload- Returns:
- builder
-
builder
static ReviewStateTransitionMessagePayloadBuilder builder(ReviewStateTransitionMessagePayload template) create builder for ReviewStateTransitionMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReviewStateTransitionMessagePayload
default <T> T withReviewStateTransitionMessagePayload(Function<ReviewStateTransitionMessagePayload, 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<ReviewStateTransitionMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-