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 SummaryConstructors
- 
Method SummaryModifier 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.getState()of()factory method for an instance of StagedQuoteStateTransitionMessagePayloadBuilderof(StagedQuoteStateTransitionMessagePayload template) create builder for StagedQuoteStateTransitionMessagePayload instanceoldState(StateReference oldState) state(StateReference state) withState(Function<StateReferenceBuilder, StateReference> builder) 
- 
Constructor Details- 
StagedQuoteStateTransitionMessagePayloadBuilderpublic StagedQuoteStateTransitionMessagePayloadBuilder()
 
- 
- 
Method Details- 
statepublic 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
 
- 
withStatepublic 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
 
- 
stateState of the Quote after the Transition State update action. - Parameters:
- state- value to be set
- Returns:
- Builder
 
- 
oldStatepublic 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
 
- 
withOldStatepublic 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
 
- 
oldStateState of the Quote before the Transition State update action. - Parameters:
- oldState- value to be set
- Returns:
- Builder
 
- 
forceWhether State transition validations were turned off during the Transition State update action. - Parameters:
- force- value to be set
- Returns:
- Builder
 
- 
getStateState of the Quote after the Transition State update action. - Returns:
- state
 
- 
getOldStateState of the Quote before the Transition State update action. - Returns:
- oldState
 
- 
getForceWhether State transition validations were turned off during the Transition State update action. - Returns:
- force
 
- 
buildbuilds StagedQuoteStateTransitionMessagePayload with checking for non-null required values- Specified by:
- buildin interface- Builder<StagedQuoteStateTransitionMessagePayload>
- Returns:
- StagedQuoteStateTransitionMessagePayload
 
- 
buildUncheckedbuilds StagedQuoteStateTransitionMessagePayload without checking for non-null required values- Returns:
- StagedQuoteStateTransitionMessagePayload
 
- 
offactory method for an instance of StagedQuoteStateTransitionMessagePayloadBuilder- Returns:
- builder
 
- 
ofpublic static StagedQuoteStateTransitionMessagePayloadBuilder of(StagedQuoteStateTransitionMessagePayload template) create builder for StagedQuoteStateTransitionMessagePayload instance- Parameters:
- template- instance with prefilled values for the builder
- Returns:
- builder
 
 
-