Class SetVariantExclusionChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetVariantExclusionChangeBuilder
- All Implemented Interfaces:
Builder<SetVariantExclusionChange>
public class SetVariantExclusionChangeBuilder
extends Object
implements Builder<SetVariantExclusionChange>
SetVariantExclusionChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetVariantExclusionChange setVariantExclusionChange = SetVariantExclusionChange.builder()
.change("{change}")
.product(productBuilder -> productBuilder)
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds SetVariantExclusionChange with checking for non-null required valuesbuilds SetVariantExclusionChange 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 updated Product.nextValue(ProductVariantExclusion nextValue) Value after the change.Value after the change.of()factory method for an instance of SetVariantExclusionChangeBuilderof(SetVariantExclusionChange template) create builder for SetVariantExclusionChange instancepreviousValue(ProductVariantExclusion previousValue) Value before the change.Value before the change.Reference to the updated Product.product(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Reference to the updated Product.Value after the change.Value before the change.
-
Constructor Details
-
SetVariantExclusionChangeBuilder
public SetVariantExclusionChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
product
Reference to the updated Product.
- Parameters:
product- value to be set- Returns:
- Builder
-
product
public SetVariantExclusionChangeBuilder product(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Reference to the updated Product.
- Parameters:
builder- function to build the product value- Returns:
- Builder
-
previousValue
public SetVariantExclusionChangeBuilder previousValue(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetVariantExclusionChangeBuilder withPreviousValue(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> 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
-
nextValue
public SetVariantExclusionChangeBuilder nextValue(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetVariantExclusionChangeBuilder withNextValue(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getProduct
Reference to the updated Product.
- Returns:
- product
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetVariantExclusionChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<SetVariantExclusionChange>- Returns:
- SetVariantExclusionChange
-
buildUnchecked
builds SetVariantExclusionChange without checking for non-null required values- Returns:
- SetVariantExclusionChange
-
of
factory method for an instance of SetVariantExclusionChangeBuilder- Returns:
- builder
-
of
create builder for SetVariantExclusionChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-