Class ProductTailoringUpdateBuilder
java.lang.Object
com.commercetools.api.models.cart.ProductTailoringUpdateBuilder
- All Implemented Interfaces:
Builder<ProductTailoringUpdate>
public class ProductTailoringUpdateBuilder
extends Object
implements Builder<ProductTailoringUpdate>
ProductTailoringUpdateBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringUpdate productTailoringUpdate = ProductTailoringUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(ProductTailoringUpdateAction... actions) Update actions to be performed on the ProductTailoring.actions
(List<ProductTailoringUpdateAction> actions) Update actions to be performed on the ProductTailoring.build()
builds ProductTailoringUpdate with checking for non-null required valuesbuilds ProductTailoringUpdate without checking for non-null required valuesUpdate actions to be performed on the ProductTailoring.Expected version of the ProductTailoring on which the changes apply.of()
factory method for an instance of ProductTailoringUpdateBuilderof
(ProductTailoringUpdate template) create builder for ProductTailoringUpdate instanceplusActions
(ProductTailoringUpdateAction... actions) Update actions to be performed on the ProductTailoring.plusActions
(Function<ProductTailoringUpdateActionBuilder, Builder<? extends ProductTailoringUpdateAction>> builder) Update actions to be performed on the ProductTailoring.Expected version of the ProductTailoring on which the changes apply.withActions
(Function<ProductTailoringUpdateActionBuilder, Builder<? extends ProductTailoringUpdateAction>> builder) Update actions to be performed on the ProductTailoring.
-
Constructor Details
-
ProductTailoringUpdateBuilder
public ProductTailoringUpdateBuilder()
-
-
Method Details
-
version
Expected version of the ProductTailoring on which the changes apply. If the expected version does not match the actual version, a 409 Conflict is returned.
- Parameters:
version
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the ProductTailoring.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the ProductTailoring.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
Update actions to be performed on the ProductTailoring.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
public ProductTailoringUpdateBuilder plusActions(Function<ProductTailoringUpdateActionBuilder, Builder<? extends ProductTailoringUpdateAction>> builder) Update actions to be performed on the ProductTailoring.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
withActions
public ProductTailoringUpdateBuilder withActions(Function<ProductTailoringUpdateActionBuilder, Builder<? extends ProductTailoringUpdateAction>> builder) Update actions to be performed on the ProductTailoring.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
getVersion
Expected version of the ProductTailoring on which the changes apply. If the expected version does not match the actual version, a 409 Conflict is returned.
- Returns:
- version
-
getActions
Update actions to be performed on the ProductTailoring.
- Returns:
- actions
-
build
builds ProductTailoringUpdate with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringUpdate>
- Returns:
- ProductTailoringUpdate
-
buildUnchecked
builds ProductTailoringUpdate without checking for non-null required values- Returns:
- ProductTailoringUpdate
-
of
factory method for an instance of ProductTailoringUpdateBuilder- Returns:
- builder
-
of
create builder for ProductTailoringUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-