Class ProductSelectionSettingBuilder
java.lang.Object
com.commercetools.history.models.common.ProductSelectionSettingBuilder
- All Implemented Interfaces:
Builder<ProductSelectionSetting>
public class ProductSelectionSettingBuilder
extends Object
implements Builder<ProductSelectionSetting>
ProductSelectionSettingBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionSetting productSelectionSetting = ProductSelectionSetting.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.active(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionset the value to the activebuild()
builds ProductSelectionSetting with checking for non-null required valuesbuilds ProductSelectionSetting without checking for non-null required valuesvalue of active}value of productSelection}of()
factory method for an instance of ProductSelectionSettingBuilderof
(ProductSelectionSetting template) create builder for ProductSelectionSetting instanceproductSelection
(Reference productSelection) set the value to the productSelectionset the value to the productSelection using the builder functionset the value to the productSelection using the builder function
-
Constructor Details
-
ProductSelectionSettingBuilder
public ProductSelectionSettingBuilder()
-
-
Method Details
-
productSelection
public ProductSelectionSettingBuilder productSelection(Function<ReferenceBuilder, ReferenceBuilder> builder) set the value to the productSelection using the builder function- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
withProductSelection
public ProductSelectionSettingBuilder withProductSelection(Function<ReferenceBuilder, Reference> builder) set the value to the productSelection using the builder function- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
productSelection
set the value to the productSelection- Parameters:
productSelection
- value to be set- Returns:
- Builder
-
active
set the value to the active- Parameters:
active
- value to be set- Returns:
- Builder
-
getProductSelection
value of productSelection}- Returns:
- productSelection
-
getActive
value of active}- Returns:
- active
-
build
builds ProductSelectionSetting with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionSetting>
- Returns:
- ProductSelectionSetting
-
buildUnchecked
builds ProductSelectionSetting without checking for non-null required values- Returns:
- ProductSelectionSetting
-
of
factory method for an instance of ProductSelectionSettingBuilder- Returns:
- builder
-
of
create builder for ProductSelectionSetting instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-