Class SetProductSelectionsChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetProductSelectionsChangeBuilder
- All Implemented Interfaces:
Builder<SetProductSelectionsChange>
public class SetProductSelectionsChangeBuilder
extends Object
implements Builder<SetProductSelectionsChange>
SetProductSelectionsChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetProductSelectionsChange setProductSelectionsChange = SetProductSelectionsChange.builder()
.change("{change}")
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue after the change.Value before the change.build()
builds SetProductSelectionsChange with checking for non-null required valuesbuilds SetProductSelectionsChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.nextValue
(ProductSelectionSetting... nextValue) Value after the change.nextValue
(List<ProductSelectionSetting> nextValue) Value after the change.of()
factory method for an instance of SetProductSelectionsChangeBuilderof
(SetProductSelectionsChange template) create builder for SetProductSelectionsChange instanceplusNextValue
(ProductSelectionSetting... nextValue) Value after the change.Value after the change.plusPreviousValue
(ProductSelectionSetting... previousValue) Value before the change.Value before the change.previousValue
(ProductSelectionSetting... previousValue) Value before the change.previousValue
(List<ProductSelectionSetting> previousValue) Value before the change.Value after the change.Value before the change.Value after the change.Value before the change.
-
Constructor Details
-
SetProductSelectionsChangeBuilder
public SetProductSelectionsChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
public SetProductSelectionsChangeBuilder plusPreviousValue(ProductSelectionSetting... previousValue) Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
public SetProductSelectionsChangeBuilder plusPreviousValue(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetProductSelectionsChangeBuilder withPreviousValue(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
addPreviousValue
public SetProductSelectionsChangeBuilder addPreviousValue(Function<ProductSelectionSettingBuilder, ProductSelectionSetting> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
setPreviousValue
public SetProductSelectionsChangeBuilder setPreviousValue(Function<ProductSelectionSettingBuilder, ProductSelectionSetting> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
public SetProductSelectionsChangeBuilder plusNextValue(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetProductSelectionsChangeBuilder withNextValue(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
addNextValue
public SetProductSelectionsChangeBuilder addNextValue(Function<ProductSelectionSettingBuilder, ProductSelectionSetting> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
setNextValue
public SetProductSelectionsChangeBuilder setNextValue(Function<ProductSelectionSettingBuilder, ProductSelectionSetting> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetProductSelectionsChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetProductSelectionsChange>
- Returns:
- SetProductSelectionsChange
-
buildUnchecked
builds SetProductSelectionsChange without checking for non-null required values- Returns:
- SetProductSelectionsChange
-
of
factory method for an instance of SetProductSelectionsChangeBuilder- Returns:
- builder
-
of
create builder for SetProductSelectionsChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-