Interface ReviewStateTransitionMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Transition State update action.
Example to create an instance using the builder pattern
ReviewStateTransitionMessage reviewStateTransitionMessage = ReviewStateTransitionMessage.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)
.newState(newStateBuilder -> newStateBuilder)
.oldIncludedInStatistics(true)
.newIncludedInStatistics(true)
.force(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ReviewStateTransitionMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ReviewStateTransitionMessagebuilder
(ReviewStateTransitionMessage template) create builder for ReviewStateTransitionMessage instancecopyDeep()
static ReviewStateTransitionMessage
deepCopy
(ReviewStateTransitionMessage template) factory method to create a deep copy of ReviewStateTransitionMessage@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
@NotNull Boolean
Whether the old Review was taken into account in the rating statistics of the target before the state transition.@Valid StateReference
@Valid Reference
static ReviewStateTransitionMessage
of()
factory methodstatic ReviewStateTransitionMessage
of
(ReviewStateTransitionMessage template) factory method to create a shallow copy ReviewStateTransitionMessagevoid
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) 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) void
static com.fasterxml.jackson.core.type.TypeReference<ReviewStateTransitionMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
REVIEW_STATE_TRANSITION
discriminator value for ReviewStateTransitionMessage- 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 ReviewStateTransitionMessage
-
of
factory method to create a shallow copy ReviewStateTransitionMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ReviewStateTransitionMessage copyDeep()- Specified by:
copyDeep
in interfaceBaseResource
- Specified by:
copyDeep
in interfaceMessage
-
deepCopy
@Nullable static ReviewStateTransitionMessage deepCopy(@Nullable ReviewStateTransitionMessage template) factory method to create a deep copy of ReviewStateTransitionMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewStateTransitionMessage- Returns:
- builder
-
builder
create builder for ReviewStateTransitionMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReviewStateTransitionMessage
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
-