Class CartDiscountTargetBuilder
java.lang.Object
com.commercetools.history.models.common.CartDiscountTargetBuilder
- All Implemented Interfaces:
Builder<CartDiscountTarget>
CartDiscountTargetBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountTarget cartDiscountTarget = CartDiscountTarget.builder()
.type("{type}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartDiscountTarget with checking for non-null required valuesbuilds CartDiscountTarget without checking for non-null required valuesgetType()value of type}static CartDiscountTargetBuilderof()factory method for an instance of CartDiscountTargetBuilderstatic CartDiscountTargetBuilderof(CartDiscountTarget template) create builder for CartDiscountTarget instanceset the value to the type
-
Constructor Details
-
CartDiscountTargetBuilder
public CartDiscountTargetBuilder()
-
-
Method Details
-
type
set the value to the type- Parameters:
type- value to be set- Returns:
- Builder
-
getType
value of type}- Returns:
- type
-
build
builds CartDiscountTarget with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartDiscountTarget>- Returns:
- CartDiscountTarget
-
buildUnchecked
builds CartDiscountTarget without checking for non-null required values- Returns:
- CartDiscountTarget
-
of
factory method for an instance of CartDiscountTargetBuilder- Returns:
- builder
-
of
create builder for CartDiscountTarget instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-