Class QuoteStateTransitionMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.QuoteStateTransitionMessagePayloadBuilder
- All Implemented Interfaces:
Builder<QuoteStateTransitionMessagePayload>
public class QuoteStateTransitionMessagePayloadBuilder
extends Object
implements Builder<QuoteStateTransitionMessagePayload>
QuoteStateTransitionMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
QuoteStateTransitionMessagePayload quoteStateTransitionMessagePayload = QuoteStateTransitionMessagePayload.builder()
.state(stateBuilder -> stateBuilder)
.force(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds QuoteStateTransitionMessagePayload with checking for non-null required valuesbuilds QuoteStateTransitionMessagePayload 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 QuoteStateTransitionMessagePayloadBuilderof
(QuoteStateTransitionMessagePayload template) create builder for QuoteStateTransitionMessagePayload 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
-
QuoteStateTransitionMessagePayloadBuilder
public QuoteStateTransitionMessagePayloadBuilder()
-
-
Method Details
-
state
public QuoteStateTransitionMessagePayloadBuilder 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 QuoteStateTransitionMessagePayloadBuilder 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 QuoteStateTransitionMessagePayloadBuilder 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 QuoteStateTransitionMessagePayloadBuilder 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 QuoteStateTransitionMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<QuoteStateTransitionMessagePayload>
- Returns:
- QuoteStateTransitionMessagePayload
-
buildUnchecked
builds QuoteStateTransitionMessagePayload without checking for non-null required values- Returns:
- QuoteStateTransitionMessagePayload
-
of
factory method for an instance of QuoteStateTransitionMessagePayloadBuilder- Returns:
- builder
-
of
public static QuoteStateTransitionMessagePayloadBuilder of(QuoteStateTransitionMessagePayload template) create builder for QuoteStateTransitionMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-