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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ReviewStateTransitionMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ReviewStateTransitionMessagePayloadbuilder(ReviewStateTransitionMessagePayload template) create builder for ReviewStateTransitionMessagePayload instancecopyDeep()deepCopy(ReviewStateTransitionMessagePayload template) factory method to create a deep copy of ReviewStateTransitionMessagePayload@NotNull BooleangetForce()Whether State transition validations were turned off during the Transition State update action.@NotNull BooleanWhether the new Review was taken into account in the rating statistics of the target after the state transition.@NotNull @Valid StateReference@NotNull BooleanWhether the old Review was taken into account in the rating statistics of the target before the state transition.@Valid StateReference@Valid Referenceof()factory methodof(ReviewStateTransitionMessagePayload template) factory method to create a shallow copy ReviewStateTransitionMessagePayloadvoidWhether State transition validations were turned off during the Transition State update action.voidsetNewIncludedInStatistics(Boolean newIncludedInStatistics) Whether the new Review was taken into account in the rating statistics of the target after the state transition.voidsetNewState(StateReference newState) voidsetOldIncludedInStatistics(Boolean oldIncludedInStatistics) Whether the old Review was taken into account in the rating statistics of the target before the state transition.voidsetOldState(StateReference oldState) voidstatic com.fasterxml.jackson.core.type.TypeReference<ReviewStateTransitionMessagePayload>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_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
- 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
- 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
-
copyDeep
ReviewStateTransitionMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-