Class CartDiscountLineItemsTargetBuilder
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountLineItemsTargetBuilder
- All Implemented Interfaces:
Builder<CartDiscountLineItemsTarget>
public class CartDiscountLineItemsTargetBuilder
extends Object
implements Builder<CartDiscountLineItemsTarget>
CartDiscountLineItemsTargetBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountLineItemsTarget cartDiscountLineItemsTarget = CartDiscountLineItemsTarget.builder()
.predicate("{predicate}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountLineItemsTarget with checking for non-null required valuesbuilds CartDiscountLineItemsTarget without checking for non-null required valuesValid LineItem target predicate.of()
factory method for an instance of CartDiscountLineItemsTargetBuilderof
(CartDiscountLineItemsTarget template) create builder for CartDiscountLineItemsTarget instanceValid LineItem target predicate.
-
Constructor Details
-
CartDiscountLineItemsTargetBuilder
public CartDiscountLineItemsTargetBuilder()
-
-
Method Details
-
predicate
Valid LineItem target predicate.
- Parameters:
predicate
- value to be set- Returns:
- Builder
-
getPredicate
Valid LineItem target predicate.
- Returns:
- predicate
-
build
builds CartDiscountLineItemsTarget with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountLineItemsTarget>
- Returns:
- CartDiscountLineItemsTarget
-
buildUnchecked
builds CartDiscountLineItemsTarget without checking for non-null required values- Returns:
- CartDiscountLineItemsTarget
-
of
factory method for an instance of CartDiscountLineItemsTargetBuilder- Returns:
- builder
-
of
create builder for CartDiscountLineItemsTarget instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-