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