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