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