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