Interface QuoteRequestTransitionStateAction
- All Superinterfaces:
QuoteRequestUpdateAction
,ResourceUpdateAction<QuoteRequestUpdateAction>
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 Quote Request State Transition Message.
Example to create an instance using the builder pattern
QuoteRequestTransitionStateAction quoteRequestTransitionStateAction = QuoteRequestTransitionStateAction.builder()
.state(stateBuilder -> stateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for QuoteRequestTransitionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for QuoteRequestTransitionStateActionbuilder
(QuoteRequestTransitionStateAction template) create builder for QuoteRequestTransitionStateAction instancedeepCopy
(QuoteRequestTransitionStateAction template) factory method to create a deep copy of QuoteRequestTransitionStateActiongetForce()
Switch validations on or off.@NotNull @Valid StateResourceIdentifier
getState()
Value to set.of()
factory methodof
(QuoteRequestTransitionStateAction template) factory method to create a shallow copy QuoteRequestTransitionStateActionvoid
Switch validations on or off.void
setState
(StateResourceIdentifier state) Value to set.static com.fasterxml.jackson.core.type.TypeReference<QuoteRequestTransitionStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.quote_request.QuoteRequestUpdateAction
getAction, withQuoteRequestUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
TRANSITION_STATE
discriminator value for QuoteRequestTransitionStateAction- See Also:
-
-
Method Details
-
getState
Value to set. If there is no State yet, this must be an initial State.
- Returns:
- state
-
getForce
Boolean getForce()Switch validations on or off.
- Returns:
- force
-
setState
Value to set. If there is no State yet, this 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 QuoteRequestTransitionStateAction
-
of
factory method to create a shallow copy QuoteRequestTransitionStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static QuoteRequestTransitionStateAction deepCopy(@Nullable QuoteRequestTransitionStateAction template) factory method to create a deep copy of QuoteRequestTransitionStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteRequestTransitionStateAction- Returns:
- builder
-
builder
create builder for QuoteRequestTransitionStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteRequestTransitionStateAction
default <T> T withQuoteRequestTransitionStateAction(Function<QuoteRequestTransitionStateAction, 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<QuoteRequestTransitionStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-