Class StandalonePriceUpdateBuilder
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceUpdateBuilder
- All Implemented Interfaces:
Builder<StandalonePriceUpdate>
StandalonePriceUpdateBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceUpdate standalonePriceUpdate = StandalonePriceUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions(StandalonePriceUpdateAction... actions) Update actions to be performed on the StandalonePrice.actions(List<StandalonePriceUpdateAction> actions) Update actions to be performed on the StandalonePrice.build()builds StandalonePriceUpdate with checking for non-null required valuesbuilds StandalonePriceUpdate without checking for non-null required valuesUpdate actions to be performed on the StandalonePrice.Expected version of the StandalonePrice on which the changes should be applied.static StandalonePriceUpdateBuilderof()factory method for an instance of StandalonePriceUpdateBuilderstatic StandalonePriceUpdateBuilderof(StandalonePriceUpdate template) create builder for StandalonePriceUpdate instanceplusActions(StandalonePriceUpdateAction... actions) Update actions to be performed on the StandalonePrice.plusActions(Function<StandalonePriceUpdateActionBuilder, Builder<? extends StandalonePriceUpdateAction>> builder) Update actions to be performed on the StandalonePrice.Expected version of the StandalonePrice on which the changes should be applied.withActions(Function<StandalonePriceUpdateActionBuilder, Builder<? extends StandalonePriceUpdateAction>> builder) Update actions to be performed on the StandalonePrice.
-
Constructor Details
-
StandalonePriceUpdateBuilder
public StandalonePriceUpdateBuilder()
-
-
Method Details
-
version
Expected version of the StandalonePrice on 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 StandalonePrice.
- Parameters:
actions- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the StandalonePrice.
- Parameters:
actions- value to be set- Returns:
- Builder
-
plusActions
Update actions to be performed on the StandalonePrice.
- Parameters:
actions- value to be set- Returns:
- Builder
-
plusActions
public StandalonePriceUpdateBuilder plusActions(Function<StandalonePriceUpdateActionBuilder, Builder<? extends StandalonePriceUpdateAction>> builder) Update actions to be performed on the StandalonePrice.
- Parameters:
builder- function to build the actions value- Returns:
- Builder
-
withActions
public StandalonePriceUpdateBuilder withActions(Function<StandalonePriceUpdateActionBuilder, Builder<? extends StandalonePriceUpdateAction>> builder) Update actions to be performed on the StandalonePrice.
- Parameters:
builder- function to build the actions value- Returns:
- Builder
-
getVersion
Expected version of the StandalonePrice on 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 StandalonePrice.
- Returns:
- actions
-
build
builds StandalonePriceUpdate with checking for non-null required values- Specified by:
buildin interfaceBuilder<StandalonePriceUpdate>- Returns:
- StandalonePriceUpdate
-
buildUnchecked
builds StandalonePriceUpdate without checking for non-null required values- Returns:
- StandalonePriceUpdate
-
of
factory method for an instance of StandalonePriceUpdateBuilder- Returns:
- builder
-
of
create builder for StandalonePriceUpdate instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-