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