Interface ReviewTransitionStateAction
- All Superinterfaces:
ResourceUpdateAction<ReviewUpdateAction>,ReviewUpdateAction
Transition to a new State. This update action produces the Review State Transition Message.
Example to create an instance using the builder pattern
ReviewTransitionStateAction reviewTransitionStateAction = ReviewTransitionStateAction.builder()
.state(stateBuilder -> stateBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ReviewTransitionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ReviewTransitionStateActionbuilder(ReviewTransitionStateAction template) create builder for ReviewTransitionStateAction instancecopyDeep()static ReviewTransitionStateActiondeepCopy(ReviewTransitionStateAction template) factory method to create a deep copy of ReviewTransitionStateActiongetForce()Switch validations on or off.@NotNull @Valid StateResourceIdentifiergetState()Value to set.static ReviewTransitionStateActionof()factory methodstatic ReviewTransitionStateActionof(ReviewTransitionStateAction template) factory method to create a shallow copy ReviewTransitionStateActionvoidSwitch validations on or off.voidsetState(StateResourceIdentifier state) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ReviewTransitionStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.review.ReviewUpdateAction
getAction, withReviewUpdateAction
-
Field Details
-
TRANSITION_STATE
discriminator value for ReviewTransitionStateAction- See Also:
-
-
Method Details
-
getState
Value to set. If there is no State yet, the new State must be an initial State. If the existing State has
transitionsset, there must be a direct transition to the new State. Iftransitionsis not set, no validation is performed. If the new State does not have the roleReviewIncludedInStatistics, the Review is not taken into account in the ratings statistics of the target.- Returns:
- state
-
getForce
Boolean getForce()Switch validations on or off.
- Returns:
- force
-
setState
Value to set. If there is no State yet, the new State must be an initial State. If the existing State has
transitionsset, there must be a direct transition to the new State. Iftransitionsis not set, no validation is performed. If the new State does not have the roleReviewIncludedInStatistics, the Review is not taken into account in the ratings statistics of the target.- Parameters:
state- value to be set
-
setForce
Switch validations on or off.
- Parameters:
force- value to be set
-
of
factory method- Returns:
- instance of ReviewTransitionStateAction
-
of
factory method to create a shallow copy ReviewTransitionStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ReviewTransitionStateAction copyDeep()- Specified by:
copyDeepin interfaceReviewUpdateAction
-
deepCopy
@Nullable static ReviewTransitionStateAction deepCopy(@Nullable ReviewTransitionStateAction template) factory method to create a deep copy of ReviewTransitionStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewTransitionStateAction- Returns:
- builder
-
builder
create builder for ReviewTransitionStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withReviewTransitionStateAction
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
-