Class ProductDiscountChangePredicateActionBuilder
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountChangePredicateActionBuilder
- All Implemented Interfaces:
Builder<ProductDiscountChangePredicateAction>
public class ProductDiscountChangePredicateActionBuilder
extends Object
implements Builder<ProductDiscountChangePredicateAction>
ProductDiscountChangePredicateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangePredicateAction productDiscountChangePredicateAction = ProductDiscountChangePredicateAction.builder()
.predicate("{predicate}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountChangePredicateAction with checking for non-null required valuesbuilds ProductDiscountChangePredicateAction without checking for non-null required valuesNew value to set.of()
factory method for an instance of ProductDiscountChangePredicateActionBuilderof
(ProductDiscountChangePredicateAction template) create builder for ProductDiscountChangePredicateAction instanceNew value to set.
-
Constructor Details
-
ProductDiscountChangePredicateActionBuilder
public ProductDiscountChangePredicateActionBuilder()
-
-
Method Details
-
predicate
New value to set. Must be a valid ProductDiscount predicate.
- Parameters:
predicate
- value to be set- Returns:
- Builder
-
getPredicate
New value to set. Must be a valid ProductDiscount predicate.
- Returns:
- predicate
-
build
builds ProductDiscountChangePredicateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDiscountChangePredicateAction>
- Returns:
- ProductDiscountChangePredicateAction
-
buildUnchecked
builds ProductDiscountChangePredicateAction without checking for non-null required values- Returns:
- ProductDiscountChangePredicateAction
-
of
factory method for an instance of ProductDiscountChangePredicateActionBuilder- Returns:
- builder
-
of
public static ProductDiscountChangePredicateActionBuilder of(ProductDiscountChangePredicateAction template) create builder for ProductDiscountChangePredicateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-