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