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