Class AddProductSelectionChangeBuilder
java.lang.Object
com.commercetools.history.models.change.AddProductSelectionChangeBuilder
- All Implemented Interfaces:
Builder<AddProductSelectionChange>
@Deprecated
public class AddProductSelectionChangeBuilder
extends Object
implements Builder<AddProductSelectionChange>
Deprecated.
AddProductSelectionChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AddProductSelectionChange addProductSelectionChange = AddProductSelectionChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.builds AddProductSelectionChange with checking for non-null required valuesDeprecated.builds AddProductSelectionChange without checking for non-null required valuesDeprecated.set the value to the changeDeprecated.value of change}Deprecated.value of nextValue}Deprecated.value of previousValue}nextValue(ProductSelectionSetting nextValue) Deprecated.set the value to the nextValueDeprecated.set the value to the nextValue using the builder functionof()Deprecated.factory method for an instance of AddProductSelectionChangeBuilderof(AddProductSelectionChange template) Deprecated.create builder for AddProductSelectionChange instancepreviousValue(ProductSelectionSetting previousValue) Deprecated.set the value to the previousValueDeprecated.set the value to the previousValue using the builder functionDeprecated.set the value to the nextValue using the builder functionDeprecated.set the value to the previousValue using the builder function
-
Constructor Details
-
AddProductSelectionChangeBuilder
public AddProductSelectionChangeBuilder()Deprecated.
-
-
Method Details
-
change
Deprecated.set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
previousValue
public AddProductSelectionChangeBuilder previousValue(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) Deprecated.set the value to the previousValue using the builder function- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public AddProductSelectionChangeBuilder withPreviousValue(Function<ProductSelectionSettingBuilder, ProductSelectionSetting> builder) Deprecated.set the value to the previousValue using the builder function- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
previousValue
Deprecated.set the value to the previousValue- Parameters:
previousValue- value to be set- Returns:
- Builder
-
nextValue
public AddProductSelectionChangeBuilder nextValue(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) Deprecated.set the value to the nextValue using the builder function- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public AddProductSelectionChangeBuilder withNextValue(Function<ProductSelectionSettingBuilder, ProductSelectionSetting> builder) Deprecated.set the value to the nextValue using the builder function- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
nextValue
Deprecated.set the value to the nextValue- Parameters:
nextValue- value to be set- Returns:
- Builder
-
getChange
Deprecated.value of change}- Returns:
- change
-
getPreviousValue
Deprecated.value of previousValue}- Returns:
- previousValue
-
getNextValue
Deprecated.value of nextValue}- Returns:
- nextValue
-
build
Deprecated.builds AddProductSelectionChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<AddProductSelectionChange>- Returns:
- AddProductSelectionChange
-
buildUnchecked
Deprecated.builds AddProductSelectionChange without checking for non-null required values- Returns:
- AddProductSelectionChange
-
of
Deprecated.factory method for an instance of AddProductSelectionChangeBuilder- Returns:
- builder
-
of
Deprecated.create builder for AddProductSelectionChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-