Class StagedQuoteTransitionStateActionBuilder
java.lang.Object
com.commercetools.api.models.staged_quote.StagedQuoteTransitionStateActionBuilder
- All Implemented Interfaces:
Builder<StagedQuoteTransitionStateAction>
public class StagedQuoteTransitionStateActionBuilder
extends Object
implements Builder<StagedQuoteTransitionStateAction>
StagedQuoteTransitionStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedQuoteTransitionStateAction stagedQuoteTransitionStateAction = StagedQuoteTransitionStateAction.builder()
.state(stateBuilder -> stateBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedQuoteTransitionStateAction with checking for non-null required valuesbuilds StagedQuoteTransitionStateAction without checking for non-null required valuesSwitch validations on or off.getForce()
Switch validations on or off.getState()
Value to set.of()
factory method for an instance of StagedQuoteTransitionStateActionBuilderof
(StagedQuoteTransitionStateAction template) create builder for StagedQuoteTransitionStateAction instancestate
(StateResourceIdentifier state) Value to set.Value to set.Value to set.
-
Constructor Details
-
StagedQuoteTransitionStateActionBuilder
public StagedQuoteTransitionStateActionBuilder()
-
-
Method Details
-
state
public StagedQuoteTransitionStateActionBuilder state(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) Value to set. If there is no State yet, the new State must be an initial State.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
public StagedQuoteTransitionStateActionBuilder withState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) Value to set. If there is no State yet, the new State must be an initial State.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
Value to set. If there is no State yet, the new State must be an initial State.
- Parameters:
state
- value to be set- Returns:
- Builder
-
force
Switch validations on or off.
- Parameters:
force
- value to be set- Returns:
- Builder
-
getState
Value to set. If there is no State yet, the new State must be an initial State.
- Returns:
- state
-
getForce
Switch validations on or off.
- Returns:
- force
-
build
builds StagedQuoteTransitionStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedQuoteTransitionStateAction>
- Returns:
- StagedQuoteTransitionStateAction
-
buildUnchecked
builds StagedQuoteTransitionStateAction without checking for non-null required values- Returns:
- StagedQuoteTransitionStateAction
-
of
factory method for an instance of StagedQuoteTransitionStateActionBuilder- Returns:
- builder
-
of
create builder for StagedQuoteTransitionStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-