Interface StagedQuoteTransitionStateAction
- All Superinterfaces:
ResourceUpdateAction<StagedQuoteUpdateAction>
,StagedQuoteUpdateAction
- All Known Implementing Classes:
StagedQuoteTransitionStateActionImpl
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. This update action produces the Staged Quote State Transition Message.
Example to create an instance using the builder pattern
StagedQuoteTransitionStateAction stagedQuoteTransitionStateAction = StagedQuoteTransitionStateAction.builder()
.state(stateBuilder -> stateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedQuoteTransitionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedQuoteTransitionStateActionbuilder
(StagedQuoteTransitionStateAction template) create builder for StagedQuoteTransitionStateAction instancedeepCopy
(StagedQuoteTransitionStateAction template) factory method to create a deep copy of StagedQuoteTransitionStateActiongetForce()
Switch validations on or off.@NotNull @Valid StateResourceIdentifier
getState()
Value to set.of()
factory methodof
(StagedQuoteTransitionStateAction template) factory method to create a shallow copy StagedQuoteTransitionStateActionvoid
Switch validations on or off.void
setState
(StateResourceIdentifier state) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedQuoteTransitionStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.staged_quote.StagedQuoteUpdateAction
getAction, withStagedQuoteUpdateAction
-
Field Details
-
TRANSITION_STATE
discriminator value for StagedQuoteTransitionStateAction- See Also:
-
-
Method Details
-
getState
Value to set. If there is no State yet, the new State must be an initial State.
- Returns:
- state
-
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.
- Parameters:
state
- value to be set
-
setForce
Switch validations on or off.
- Parameters:
force
- value to be set
-
of
factory method- Returns:
- instance of StagedQuoteTransitionStateAction
-
of
factory method to create a shallow copy StagedQuoteTransitionStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedQuoteTransitionStateAction deepCopy(@Nullable StagedQuoteTransitionStateAction template) factory method to create a deep copy of StagedQuoteTransitionStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedQuoteTransitionStateAction- Returns:
- builder
-
builder
create builder for StagedQuoteTransitionStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedQuoteTransitionStateAction
default <T> T withStagedQuoteTransitionStateAction(Function<StagedQuoteTransitionStateAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedQuoteTransitionStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-