Class RemoveProductSelectionChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RemoveProductSelectionChangeBuilder
- All Implemented Interfaces:
Builder<RemoveProductSelectionChange>
public class RemoveProductSelectionChangeBuilder
extends Object
implements Builder<RemoveProductSelectionChange>
RemoveProductSelectionChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RemoveProductSelectionChange removeProductSelectionChange = RemoveProductSelectionChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RemoveProductSelectionChange with checking for non-null required valuesbuilds RemoveProductSelectionChange without checking for non-null required valuesset the value to the changevalue of change}Value before the change.of()
factory method for an instance of RemoveProductSelectionChangeBuilderof
(RemoveProductSelectionChange template) create builder for RemoveProductSelectionChange instancepreviousValue
(ProductSelectionSetting previousValue) Value before the change.Value before the change.Value before the change.
-
Constructor Details
-
RemoveProductSelectionChangeBuilder
public RemoveProductSelectionChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public RemoveProductSelectionChangeBuilder previousValue(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public RemoveProductSelectionChangeBuilder withPreviousValue(Function<ProductSelectionSettingBuilder, ProductSelectionSetting> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
build
builds RemoveProductSelectionChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<RemoveProductSelectionChange>
- Returns:
- RemoveProductSelectionChange
-
buildUnchecked
builds RemoveProductSelectionChange without checking for non-null required values- Returns:
- RemoveProductSelectionChange
-
of
factory method for an instance of RemoveProductSelectionChangeBuilder- Returns:
- builder
-
of
create builder for RemoveProductSelectionChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-