Class CartDiscountTotalPriceTargetBuilder
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountTotalPriceTargetBuilder
- All Implemented Interfaces:
Builder<CartDiscountTotalPriceTarget>
public class CartDiscountTotalPriceTargetBuilder
extends Object
implements Builder<CartDiscountTotalPriceTarget>
CartDiscountTotalPriceTargetBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountTotalPriceTarget cartDiscountTotalPriceTarget = CartDiscountTotalPriceTarget.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountTotalPriceTarget with checking for non-null required valuesbuilds CartDiscountTotalPriceTarget without checking for non-null required valuesof()
factory method for an instance of CartDiscountTotalPriceTargetBuilderof
(CartDiscountTotalPriceTarget template) create builder for CartDiscountTotalPriceTarget instance
-
Constructor Details
-
CartDiscountTotalPriceTargetBuilder
public CartDiscountTotalPriceTargetBuilder()
-
-
Method Details
-
build
builds CartDiscountTotalPriceTarget with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountTotalPriceTarget>
- Returns:
- CartDiscountTotalPriceTarget
-
buildUnchecked
builds CartDiscountTotalPriceTarget without checking for non-null required values- Returns:
- CartDiscountTotalPriceTarget
-
of
factory method for an instance of CartDiscountTotalPriceTargetBuilder- Returns:
- builder
-
of
create builder for CartDiscountTotalPriceTarget instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-