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