Class StagedQuoteUpdateBuilder
java.lang.Object
com.commercetools.api.models.staged_quote.StagedQuoteUpdateBuilder
- All Implemented Interfaces:
Builder<StagedQuoteUpdate>
StagedQuoteUpdateBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedQuoteUpdate stagedQuoteUpdate = StagedQuoteUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(StagedQuoteUpdateAction... actions) Update actions to be performed on the StagedQuote.actions
(List<StagedQuoteUpdateAction> actions) Update actions to be performed on the StagedQuote.build()
builds StagedQuoteUpdate with checking for non-null required valuesbuilds StagedQuoteUpdate without checking for non-null required valuesUpdate actions to be performed on the StagedQuote.Expected version of the StagedQuote to which the changes should be applied.static StagedQuoteUpdateBuilder
of()
factory method for an instance of StagedQuoteUpdateBuilderstatic StagedQuoteUpdateBuilder
of
(StagedQuoteUpdate template) create builder for StagedQuoteUpdate instanceplusActions
(StagedQuoteUpdateAction... actions) Update actions to be performed on the StagedQuote.plusActions
(Function<StagedQuoteUpdateActionBuilder, Builder<? extends StagedQuoteUpdateAction>> builder) Update actions to be performed on the StagedQuote.Expected version of the StagedQuote to which the changes should be applied.withActions
(Function<StagedQuoteUpdateActionBuilder, Builder<? extends StagedQuoteUpdateAction>> builder) Update actions to be performed on the StagedQuote.
-
Constructor Details
-
StagedQuoteUpdateBuilder
public StagedQuoteUpdateBuilder()
-
-
Method Details
-
version
Expected version of the StagedQuote to which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Parameters:
version
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the StagedQuote.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the StagedQuote.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
Update actions to be performed on the StagedQuote.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
public StagedQuoteUpdateBuilder plusActions(Function<StagedQuoteUpdateActionBuilder, Builder<? extends StagedQuoteUpdateAction>> builder) Update actions to be performed on the StagedQuote.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
withActions
public StagedQuoteUpdateBuilder withActions(Function<StagedQuoteUpdateActionBuilder, Builder<? extends StagedQuoteUpdateAction>> builder) Update actions to be performed on the StagedQuote.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
getVersion
Expected version of the StagedQuote to which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Returns:
- version
-
getActions
Update actions to be performed on the StagedQuote.
- Returns:
- actions
-
build
builds StagedQuoteUpdate with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedQuoteUpdate>
- Returns:
- StagedQuoteUpdate
-
buildUnchecked
builds StagedQuoteUpdate without checking for non-null required values- Returns:
- StagedQuoteUpdate
-
of
factory method for an instance of StagedQuoteUpdateBuilder- Returns:
- builder
-
of
create builder for StagedQuoteUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-