Interface ProductTransitionStateAction
- All Superinterfaces:
ProductUpdateAction,ResourceUpdateAction<ProductUpdateAction>
If the existing State has set transitions, there must be a direct transition to the new State. If transitions is not set, no validation is performed. Produces the ProductStateTransition Message.
Example to create an instance using the builder pattern
ProductTransitionStateAction productTransitionStateAction = ProductTransitionStateAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTransitionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTransitionStateActionbuilder(ProductTransitionStateAction template) create builder for ProductTransitionStateAction instancecopyDeep()static ProductTransitionStateActiondeepCopy(ProductTransitionStateAction template) factory method to create a deep copy of ProductTransitionStateActiongetForce()Iftrue, validations are disabled.@Valid StateResourceIdentifiergetState()The State to transition to.static ProductTransitionStateActionof()factory methodstatic ProductTransitionStateActionof(ProductTransitionStateAction template) factory method to create a shallow copy ProductTransitionStateActionvoidIftrue, validations are disabled.voidsetState(StateResourceIdentifier state) The State to transition to.static com.fasterxml.jackson.core.type.TypeReference<ProductTransitionStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
TRANSITION_STATE
discriminator value for ProductTransitionStateAction- See Also:
-
-
Method Details
-
getState
The State to transition to. If there is no existing State, this must be an initial State.
- Returns:
- state
-
getForce
Boolean getForce()If
true, validations are disabled.- Returns:
- force
-
setState
The State to transition to. If there is no existing State, this must be an initial State.
- Parameters:
state- value to be set
-
setForce
If
true, validations are disabled.- Parameters:
force- value to be set
-
of
factory method- Returns:
- instance of ProductTransitionStateAction
-
of
factory method to create a shallow copy ProductTransitionStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTransitionStateAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
deepCopy
@Nullable static ProductTransitionStateAction deepCopy(@Nullable ProductTransitionStateAction template) factory method to create a deep copy of ProductTransitionStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTransitionStateAction- Returns:
- builder
-
builder
create builder for ProductTransitionStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTransitionStateAction
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
-