Class ChangeProductSelectionActiveChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeProductSelectionActiveChangeBuilder
- All Implemented Interfaces:
Builder<ChangeProductSelectionActiveChange>
public class ChangeProductSelectionActiveChangeBuilder
extends Object
implements Builder<ChangeProductSelectionActiveChange>
ChangeProductSelectionActiveChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeProductSelectionActiveChange changeProductSelectionActiveChange = ChangeProductSelectionActiveChange.builder()
.change("{change}")
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.previousValue(true)
.nextValue(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChangeProductSelectionActiveChange with checking for non-null required valuesbuilds ChangeProductSelectionActiveChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.Reference to the Product Selection which was changed.Value after the change.of()
factory method for an instance of ChangeProductSelectionActiveChangeBuilderof
(ChangeProductSelectionActiveChange template) create builder for ChangeProductSelectionActiveChange instancepreviousValue
(Boolean previousValue) Value before the change.productSelection
(Reference productSelection) Reference to the Product Selection which was changed.Reference to the Product Selection which was changed.Reference to the Product Selection which was changed.
-
Constructor Details
-
ChangeProductSelectionActiveChangeBuilder
public ChangeProductSelectionActiveChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
productSelection
public ChangeProductSelectionActiveChangeBuilder productSelection(Function<ReferenceBuilder, ReferenceBuilder> builder) Reference to the Product Selection which was changed.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
withProductSelection
public ChangeProductSelectionActiveChangeBuilder withProductSelection(Function<ReferenceBuilder, Reference> builder) Reference to the Product Selection which was changed.
- Parameters:
builder
- function to build the productSelection value- Returns:
- Builder
-
productSelection
Reference to the Product Selection which was changed.
- Parameters:
productSelection
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getProductSelection
Reference to the Product Selection which was changed.
- Returns:
- productSelection
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds ChangeProductSelectionActiveChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeProductSelectionActiveChange>
- Returns:
- ChangeProductSelectionActiveChange
-
buildUnchecked
builds ChangeProductSelectionActiveChange without checking for non-null required values- Returns:
- ChangeProductSelectionActiveChange
-
of
factory method for an instance of ChangeProductSelectionActiveChangeBuilder- Returns:
- builder
-
of
public static ChangeProductSelectionActiveChangeBuilder of(ChangeProductSelectionActiveChange template) create builder for ChangeProductSelectionActiveChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-