Class ProductTransitionStateActionImpl
java.lang.Object
com.commercetools.api.models.product.ProductTransitionStateActionImpl
- All Implemented Interfaces:
ProductTransitionStateAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductTransitionStateActionImpl
extends Object
implements ProductTransitionStateAction, io.vrap.rmf.base.client.ModelBase
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.product.ProductTransitionStateAction
TRANSITION_STATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getForce()
Iftrue
, validations are disabled.getState()
The State to transition to.int
hashCode()
void
Iftrue
, validations are disabled.void
setState
(StateResourceIdentifier state) The State to transition to.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductTransitionStateAction
withProductTransitionStateAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductTransitionStateActionImpl
public ProductTransitionStateActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductUpdateAction>
- Returns:
- action
-
getState
The State to transition to. If there is no existing State, this must be an initial State.
- Specified by:
getState
in interfaceProductTransitionStateAction
- Returns:
- state
-
getForce
If
true
, validations are disabled.- Specified by:
getForce
in interfaceProductTransitionStateAction
- Returns:
- force
-
setState
Description copied from interface:ProductTransitionStateAction
The State to transition to. If there is no existing State, this must be an initial State.
- Specified by:
setState
in interfaceProductTransitionStateAction
- Parameters:
state
- value to be set
-
setForce
Description copied from interface:ProductTransitionStateAction
If
true
, validations are disabled.- Specified by:
setForce
in interfaceProductTransitionStateAction
- Parameters:
force
- value to be set
-
equals
-
hashCode
-