Class ProductSelectionProductExcludedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductSelectionProductExcludedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductSelectionProductExcludedMessagePayload>
public class ProductSelectionProductExcludedMessagePayloadBuilder
extends Object
implements Builder<ProductSelectionProductExcludedMessagePayload>
ProductSelectionProductExcludedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionProductExcludedMessagePayload productSelectionProductExcludedMessagePayload = ProductSelectionProductExcludedMessagePayload.builder()
.product(productBuilder -> productBuilder)
.variantExclusion(variantExclusionBuilder -> variantExclusionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSelectionProductExcludedMessagePayload with checking for non-null required valuesbuilds ProductSelectionProductExcludedMessagePayload without checking for non-null required valuesProduct that was excluded from the Product Selection.Product Variant Exclusion after the Exclude Product update action.of()
factory method for an instance of ProductSelectionProductExcludedMessagePayloadBuildercreate builder for ProductSelectionProductExcludedMessagePayload instanceproduct
(ProductReference product) Product that was excluded from the Product Selection.Product that was excluded from the Product Selection.variantExclusion
(ProductVariantExclusion variantExclusion) Product Variant Exclusion after the Exclude Product update action.Product Variant Exclusion after the Exclude Product update action.Product that was excluded from the Product Selection.Product Variant Exclusion after the Exclude Product update action.
-
Constructor Details
-
ProductSelectionProductExcludedMessagePayloadBuilder
public ProductSelectionProductExcludedMessagePayloadBuilder()
-
-
Method Details
-
product
public ProductSelectionProductExcludedMessagePayloadBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Product that was excluded from the Product Selection.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductSelectionProductExcludedMessagePayloadBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Product that was excluded from the Product Selection.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Product that was excluded from the Product Selection.
- Parameters:
product
- value to be set- Returns:
- Builder
-
variantExclusion
public ProductSelectionProductExcludedMessagePayloadBuilder variantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusionBuilder> builder) Product Variant Exclusion after the Exclude Product update action.
- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
withVariantExclusion
public ProductSelectionProductExcludedMessagePayloadBuilder withVariantExclusion(Function<ProductVariantExclusionBuilder, ProductVariantExclusion> builder) Product Variant Exclusion after the Exclude Product update action.
- Parameters:
builder
- function to build the variantExclusion value- Returns:
- Builder
-
variantExclusion
public ProductSelectionProductExcludedMessagePayloadBuilder variantExclusion(ProductVariantExclusion variantExclusion) Product Variant Exclusion after the Exclude Product update action.
- Parameters:
variantExclusion
- value to be set- Returns:
- Builder
-
getProduct
Product that was excluded from the Product Selection.
- Returns:
- product
-
getVariantExclusion
Product Variant Exclusion after the Exclude Product update action.
- Returns:
- variantExclusion
-
build
builds ProductSelectionProductExcludedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionProductExcludedMessagePayload>
- Returns:
- ProductSelectionProductExcludedMessagePayload
-
buildUnchecked
builds ProductSelectionProductExcludedMessagePayload without checking for non-null required values- Returns:
- ProductSelectionProductExcludedMessagePayload
-
of
factory method for an instance of ProductSelectionProductExcludedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductSelectionProductExcludedMessagePayloadBuilder of(ProductSelectionProductExcludedMessagePayload template) create builder for ProductSelectionProductExcludedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-