Class StagedQuoteStateTransitionMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StagedQuoteStateTransitionMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StagedQuoteStateTransitionMessagePayload>
public class StagedQuoteStateTransitionMessagePayloadBuilder
extends Object
implements Builder<StagedQuoteStateTransitionMessagePayload>
StagedQuoteStateTransitionMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedQuoteStateTransitionMessagePayload stagedQuoteStateTransitionMessagePayload = StagedQuoteStateTransitionMessagePayload.builder()
.state(stateBuilder -> stateBuilder)
.force(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedQuoteStateTransitionMessagePayload with checking for non-null required valuesbuilds StagedQuoteStateTransitionMessagePayload without checking for non-null required valuesWhether State transition validations were turned off during the Transition State update action.getForce()
Whether State transition validations were turned off during the Transition State update action.State of the Quote before the Transition State update action.getState()
State of the Quote after the Transition State update action.of()
factory method for an instance of StagedQuoteStateTransitionMessagePayloadBuilderof
(StagedQuoteStateTransitionMessagePayload template) create builder for StagedQuoteStateTransitionMessagePayload instanceoldState
(StateReference oldState) State of the Quote before the Transition State update action.State of the Quote before the Transition State update action.state
(StateReference state) State of the Quote after the Transition State update action.State of the Quote after the Transition State update action.State of the Quote before the Transition State update action.withState
(Function<StateReferenceBuilder, StateReference> builder) State of the Quote after the Transition State update action.
-
Constructor Details
-
StagedQuoteStateTransitionMessagePayloadBuilder
public StagedQuoteStateTransitionMessagePayloadBuilder()
-
-
Method Details
-
state
public StagedQuoteStateTransitionMessagePayloadBuilder state(Function<StateReferenceBuilder, StateReferenceBuilder> builder) State of the Quote after the Transition State update action.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
public StagedQuoteStateTransitionMessagePayloadBuilder withState(Function<StateReferenceBuilder, StateReference> builder) State of the Quote after the Transition State update action.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
State of the Quote after the Transition State update action.
- Parameters:
state
- value to be set- Returns:
- Builder
-
oldState
public StagedQuoteStateTransitionMessagePayloadBuilder oldState(Function<StateReferenceBuilder, StateReferenceBuilder> builder) State of the Quote before the Transition State update action.
- Parameters:
builder
- function to build the oldState value- Returns:
- Builder
-
withOldState
public StagedQuoteStateTransitionMessagePayloadBuilder withOldState(Function<StateReferenceBuilder, StateReference> builder) State of the Quote before the Transition State update action.
- Parameters:
builder
- function to build the oldState value- Returns:
- Builder
-
oldState
State of the Quote before the Transition State update action.
- Parameters:
oldState
- value to be set- Returns:
- Builder
-
force
Whether State transition validations were turned off during the Transition State update action.
- Parameters:
force
- value to be set- Returns:
- Builder
-
getState
State of the Quote after the Transition State update action.
- Returns:
- state
-
getOldState
State of the Quote before the Transition State update action.
- Returns:
- oldState
-
getForce
Whether State transition validations were turned off during the Transition State update action.
- Returns:
- force
-
build
builds StagedQuoteStateTransitionMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedQuoteStateTransitionMessagePayload>
- Returns:
- StagedQuoteStateTransitionMessagePayload
-
buildUnchecked
builds StagedQuoteStateTransitionMessagePayload without checking for non-null required values- Returns:
- StagedQuoteStateTransitionMessagePayload
-
of
factory method for an instance of StagedQuoteStateTransitionMessagePayloadBuilder- Returns:
- builder
-
of
public static StagedQuoteStateTransitionMessagePayloadBuilder of(StagedQuoteStateTransitionMessagePayload template) create builder for StagedQuoteStateTransitionMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-