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