Class CartDiscountSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountSetKeyActionBuilder
- All Implemented Interfaces:
Builder<CartDiscountSetKeyAction>
public class CartDiscountSetKeyActionBuilder
extends Object
implements Builder<CartDiscountSetKeyAction>
CartDiscountSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountSetKeyAction cartDiscountSetKeyAction = CartDiscountSetKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountSetKeyAction with checking for non-null required valuesbuilds CartDiscountSetKeyAction without checking for non-null required valuesgetKey()
Value to set.Value to set.of()
factory method for an instance of CartDiscountSetKeyActionBuilderof
(CartDiscountSetKeyAction template) create builder for CartDiscountSetKeyAction instance
-
Constructor Details
-
CartDiscountSetKeyActionBuilder
public CartDiscountSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If empty, any existing value will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Value to set. If empty, any existing value will be removed.
- Returns:
- key
-
build
builds CartDiscountSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountSetKeyAction>
- Returns:
- CartDiscountSetKeyAction
-
buildUnchecked
builds CartDiscountSetKeyAction without checking for non-null required values- Returns:
- CartDiscountSetKeyAction
-
of
factory method for an instance of CartDiscountSetKeyActionBuilder- Returns:
- builder
-
of
create builder for CartDiscountSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-