Interface QuoteTransitionStateAction
- All Superinterfaces:
QuoteUpdateAction,ResourceUpdateAction<QuoteUpdateAction>
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 State Transition Message.
Example to create an instance using the builder pattern
QuoteTransitionStateAction quoteTransitionStateAction = QuoteTransitionStateAction.builder()
.state(stateBuilder -> stateBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for QuoteTransitionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for QuoteTransitionStateActionbuilder(QuoteTransitionStateAction template) create builder for QuoteTransitionStateAction instancecopyDeep()static QuoteTransitionStateActiondeepCopy(QuoteTransitionStateAction template) factory method to create a deep copy of QuoteTransitionStateActiongetForce()Switch validations on or off.@NotNull @Valid StateResourceIdentifiergetState()Value to set.static QuoteTransitionStateActionof()factory methodstatic QuoteTransitionStateActionof(QuoteTransitionStateAction template) factory method to create a shallow copy QuoteTransitionStateActionvoidSwitch validations on or off.voidsetState(StateResourceIdentifier state) Value to set.static com.fasterxml.jackson.core.type.TypeReference<QuoteTransitionStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.quote.QuoteUpdateAction
getAction, withQuoteUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
TRANSITION_STATE
discriminator value for QuoteTransitionStateAction- 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 QuoteTransitionStateAction
-
of
factory method to create a shallow copy QuoteTransitionStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
QuoteTransitionStateAction copyDeep()- Specified by:
copyDeepin interfaceQuoteUpdateAction
-
deepCopy
factory method to create a deep copy of QuoteTransitionStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteTransitionStateAction- Returns:
- builder
-
builder
create builder for QuoteTransitionStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteTransitionStateAction
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
-