Class ProductSelectionRemoveProductActionBuilder
java.lang.Object
com.commercetools.api.models.product_selection.ProductSelectionRemoveProductActionBuilder
- All Implemented Interfaces:
Builder<ProductSelectionRemoveProductAction>
public class ProductSelectionRemoveProductActionBuilder
extends Object
implements Builder<ProductSelectionRemoveProductAction>
ProductSelectionRemoveProductActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionRemoveProductAction productSelectionRemoveProductAction = ProductSelectionRemoveProductAction.builder()
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSelectionRemoveProductAction with checking for non-null required valuesbuilds ProductSelectionRemoveProductAction without checking for non-null required valuesResourceIdentifier of the Productof()
factory method for an instance of ProductSelectionRemoveProductActionBuilderof
(ProductSelectionRemoveProductAction template) create builder for ProductSelectionRemoveProductAction instanceproduct
(ProductResourceIdentifier product) ResourceIdentifier of the ProductResourceIdentifier of the ProductResourceIdentifier of the Product
-
Constructor Details
-
ProductSelectionRemoveProductActionBuilder
public ProductSelectionRemoveProductActionBuilder()
-
-
Method Details
-
product
public ProductSelectionRemoveProductActionBuilder product(Function<ProductResourceIdentifierBuilder, ProductResourceIdentifierBuilder> builder) ResourceIdentifier of the Product
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductSelectionRemoveProductActionBuilder withProduct(Function<ProductResourceIdentifierBuilder, ProductResourceIdentifier> builder) ResourceIdentifier of the Product
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
ResourceIdentifier of the Product
- Parameters:
product
- value to be set- Returns:
- Builder
-
getProduct
ResourceIdentifier of the Product
- Returns:
- product
-
build
builds ProductSelectionRemoveProductAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSelectionRemoveProductAction>
- Returns:
- ProductSelectionRemoveProductAction
-
buildUnchecked
builds ProductSelectionRemoveProductAction without checking for non-null required values- Returns:
- ProductSelectionRemoveProductAction
-
of
factory method for an instance of ProductSelectionRemoveProductActionBuilder- Returns:
- builder
-
of
public static ProductSelectionRemoveProductActionBuilder of(ProductSelectionRemoveProductAction template) create builder for ProductSelectionRemoveProductAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-