Class ExcludeProductChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ExcludeProductChangeBuilder
- All Implemented Interfaces:
Builder<ExcludeProductChange>
ExcludeProductChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExcludeProductChange excludeProductChange = ExcludeProductChange.builder()
.change("{change}")
.variantExclusion(variantExclusionBuilder -> variantExclusionBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ExcludeProductChange with checking for non-null required valuesbuilds ExcludeProductChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Only Product Variants with the explicitly listed SKUs are part of a Product Selection withIndividualExclusionProductSelectionMode.Value after the change.nextValue(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Value after the change.static ExcludeProductChangeBuilderof()factory method for an instance of ExcludeProductChangeBuilderstatic ExcludeProductChangeBuilderof(ExcludeProductChange template) create builder for ExcludeProductChange instancevariantExclusion(ProductVariantExclusion variantExclusion) Only Product Variants with the explicitly listed SKUs are part of a Product Selection withIndividualExclusionProductSelectionMode.Only Product Variants with the explicitly listed SKUs are part of a Product Selection withIndividualExclusionProductSelectionMode.Only Product Variants with the explicitly listed SKUs are part of a Product Selection withIndividualExclusionProductSelectionMode.
-
Constructor Details
-
ExcludeProductChangeBuilder
public ExcludeProductChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
variantExclusion
public ExcludeProductChangeBuilder variantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Only Product Variants with the explicitly listed SKUs are part of a Product Selection with
IndividualExclusionProductSelectionMode.- Parameters:
builder- function to build the variantExclusion value- Returns:
- Builder
-
withVariantExclusion
public ExcludeProductChangeBuilder withVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> builder) Only Product Variants with the explicitly listed SKUs are part of a Product Selection with
IndividualExclusionProductSelectionMode.- Parameters:
builder- function to build the variantExclusion value- Returns:
- Builder
-
variantExclusion
Only Product Variants with the explicitly listed SKUs are part of a Product Selection with
IndividualExclusionProductSelectionMode.- Parameters:
variantExclusion- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
nextValue
public ExcludeProductChangeBuilder nextValue(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getVariantExclusion
Only Product Variants with the explicitly listed SKUs are part of a Product Selection with
IndividualExclusionProductSelectionMode.- Returns:
- variantExclusion
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds ExcludeProductChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<ExcludeProductChange>- Returns:
- ExcludeProductChange
-
buildUnchecked
builds ExcludeProductChange without checking for non-null required values- Returns:
- ExcludeProductChange
-
of
factory method for an instance of ExcludeProductChangeBuilder- Returns:
- builder
-
of
create builder for ExcludeProductChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-