Class CartDiscountChangeCartPredicateActionBuilder
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountChangeCartPredicateActionBuilder
- All Implemented Interfaces:
Builder<CartDiscountChangeCartPredicateAction>
public class CartDiscountChangeCartPredicateActionBuilder
extends Object
implements Builder<CartDiscountChangeCartPredicateAction>
CartDiscountChangeCartPredicateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountChangeCartPredicateAction cartDiscountChangeCartPredicateAction = CartDiscountChangeCartPredicateAction.builder()
.cartPredicate("{cartPredicate}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountChangeCartPredicateAction with checking for non-null required valuesbuilds CartDiscountChangeCartPredicateAction without checking for non-null required valuescartPredicate
(String cartPredicate) New value to set.New value to set.of()
factory method for an instance of CartDiscountChangeCartPredicateActionBuilderof
(CartDiscountChangeCartPredicateAction template) create builder for CartDiscountChangeCartPredicateAction instance
-
Constructor Details
-
CartDiscountChangeCartPredicateActionBuilder
public CartDiscountChangeCartPredicateActionBuilder()
-
-
Method Details
-
cartPredicate
New value to set.
- Parameters:
cartPredicate
- value to be set- Returns:
- Builder
-
getCartPredicate
New value to set.
- Returns:
- cartPredicate
-
build
builds CartDiscountChangeCartPredicateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountChangeCartPredicateAction>
- Returns:
- CartDiscountChangeCartPredicateAction
-
buildUnchecked
builds CartDiscountChangeCartPredicateAction without checking for non-null required values- Returns:
- CartDiscountChangeCartPredicateAction
-
of
factory method for an instance of CartDiscountChangeCartPredicateActionBuilder- Returns:
- builder
-
of
public static CartDiscountChangeCartPredicateActionBuilder of(CartDiscountChangeCartPredicateAction template) create builder for CartDiscountChangeCartPredicateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-