Class ProductSelectionProductRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductSelectionProductRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductSelectionProductRemovedMessagePayload>
public class ProductSelectionProductRemovedMessagePayloadBuilder
extends Object
implements Builder<ProductSelectionProductRemovedMessagePayload>
ProductSelectionProductRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionProductRemovedMessagePayload productSelectionProductRemovedMessagePayload = ProductSelectionProductRemovedMessagePayload.builder()
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSelectionProductRemovedMessagePayload with checking for non-null required valuesbuilds ProductSelectionProductRemovedMessagePayload without checking for non-null required valuesProduct that was removed from the Product Selection.of()
factory method for an instance of ProductSelectionProductRemovedMessagePayloadBuildercreate builder for ProductSelectionProductRemovedMessagePayload instanceproduct
(ProductReference product) Product that was removed from the Product Selection.Product that was removed from the Product Selection.Product that was removed from the Product Selection.
-
Constructor Details
-
ProductSelectionProductRemovedMessagePayloadBuilder
public ProductSelectionProductRemovedMessagePayloadBuilder()
-
-
Method Details
-
product
public ProductSelectionProductRemovedMessagePayloadBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Product that was removed from the Product Selection.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductSelectionProductRemovedMessagePayloadBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Product that was removed from the Product Selection.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Product that was removed from the Product Selection.
- Parameters:
product
- value to be set- Returns:
- Builder
-
getProduct
Product that was removed from the Product Selection.
- Returns:
- product
-
build
builds ProductSelectionProductRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionProductRemovedMessagePayload>
- Returns:
- ProductSelectionProductRemovedMessagePayload
-
buildUnchecked
builds ProductSelectionProductRemovedMessagePayload without checking for non-null required values- Returns:
- ProductSelectionProductRemovedMessagePayload
-
of
factory method for an instance of ProductSelectionProductRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductSelectionProductRemovedMessagePayloadBuilder of(ProductSelectionProductRemovedMessagePayload template) create builder for ProductSelectionProductRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-