Class ProductSelectionUpdateBuilder
java.lang.Object
com.commercetools.api.models.product_selection.ProductSelectionUpdateBuilder
- All Implemented Interfaces:
Builder<ProductSelectionUpdate>
public class ProductSelectionUpdateBuilder
extends Object
implements Builder<ProductSelectionUpdate>
ProductSelectionUpdateBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionUpdate productSelectionUpdate = ProductSelectionUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(ProductSelectionUpdateAction... actions) set values to the actionsactions
(List<ProductSelectionUpdateAction> actions) set value to the actionsbuild()
builds ProductSelectionUpdate with checking for non-null required valuesbuilds ProductSelectionUpdate without checking for non-null required valuesvalue of actions}value of version}of()
factory method for an instance of ProductSelectionUpdateBuilderof
(ProductSelectionUpdate template) create builder for ProductSelectionUpdate instanceplusActions
(ProductSelectionUpdateAction... actions) add values to the actionsplusActions
(Function<ProductSelectionUpdateActionBuilder, Builder<? extends ProductSelectionUpdateAction>> builder) add a value to the actions using the builder functionset the value to the versionwithActions
(Function<ProductSelectionUpdateActionBuilder, Builder<? extends ProductSelectionUpdateAction>> builder) set the value to the actions using the builder function
-
Constructor Details
-
ProductSelectionUpdateBuilder
public ProductSelectionUpdateBuilder()
-
-
Method Details
-
version
set the value to the version- Parameters:
version
- value to be set- Returns:
- Builder
-
actions
set values to the actions- Parameters:
actions
- value to be set- Returns:
- Builder
-
actions
set value to the actions- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
add values to the actions- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
public ProductSelectionUpdateBuilder plusActions(Function<ProductSelectionUpdateActionBuilder, Builder<? extends ProductSelectionUpdateAction>> builder) add a value to the actions using the builder function- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
withActions
public ProductSelectionUpdateBuilder withActions(Function<ProductSelectionUpdateActionBuilder, Builder<? extends ProductSelectionUpdateAction>> builder) set the value to the actions using the builder function- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
getVersion
value of version}- Returns:
- version
-
getActions
value of actions}- Returns:
- actions
-
build
builds ProductSelectionUpdate with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionUpdate>
- Returns:
- ProductSelectionUpdate
-
buildUnchecked
builds ProductSelectionUpdate without checking for non-null required values- Returns:
- ProductSelectionUpdate
-
of
factory method for an instance of ProductSelectionUpdateBuilder- Returns:
- builder
-
of
create builder for ProductSelectionUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-