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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTransitionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTransitionStateActionbuilder
(ProductTransitionStateAction template) create builder for ProductTransitionStateAction instancestatic ProductTransitionStateAction
deepCopy
(ProductTransitionStateAction template) factory method to create a deep copy of ProductTransitionStateActiongetForce()
Iftrue
, validations are disabled.@Valid StateResourceIdentifier
getState()
The State to transition to.static ProductTransitionStateAction
of()
factory methodstatic ProductTransitionStateAction
of
(ProductTransitionStateAction template) factory method to create a shallow copy ProductTransitionStateActionvoid
Iftrue
, validations are disabled.void
setState
(StateResourceIdentifier state) The State to transition to.static com.fasterxml.jackson.core.type.TypeReference<ProductTransitionStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateAction
Methods 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
-
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
-