Interface DiscountCodeSetValidFromAndUntilAction
- All Superinterfaces:
DiscountCodeUpdateAction
,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeSetValidFromAndUntilAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetValidFromAndUntilAction discountCodeSetValidFromAndUntilAction = DiscountCodeSetValidFromAndUntilAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeSetValidFromAndUntilAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeSetValidFromAndUntilActioncreate builder for DiscountCodeSetValidFromAndUntilAction instancefactory method to create a deep copy of DiscountCodeSetValidFromAndUntilActionValue to set that must be earlier thanvalidUntil
.Value to set that must be later thanvalidFrom
.of()
factory methodof
(DiscountCodeSetValidFromAndUntilAction template) factory method to create a shallow copy DiscountCodeSetValidFromAndUntilActionvoid
setValidFrom
(ZonedDateTime validFrom) Value to set that must be earlier thanvalidUntil
.void
setValidUntil
(ZonedDateTime validUntil) Value to set that must be later thanvalidFrom
.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetValidFromAndUntilAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDiscountCodeSetValidFromAndUntilAction
(Function<DiscountCodeSetValidFromAndUntilAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_VALID_FROM_AND_UNTIL
discriminator value for DiscountCodeSetValidFromAndUntilAction- See Also:
-
-
Method Details
-
getValidFrom
ZonedDateTime getValidFrom()Value to set that must be earlier than
validUntil
. If empty, any existing value will be removed.- Returns:
- validFrom
-
getValidUntil
ZonedDateTime getValidUntil()Value to set that must be later than
validFrom
. If empty, any existing value will be removed.- Returns:
- validUntil
-
setValidFrom
Value to set that must be earlier than
validUntil
. If empty, any existing value will be removed.- Parameters:
validFrom
- value to be set
-
setValidUntil
Value to set that must be later than
validFrom
. If empty, any existing value will be removed.- Parameters:
validUntil
- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeSetValidFromAndUntilAction
-
of
factory method to create a shallow copy DiscountCodeSetValidFromAndUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountCodeSetValidFromAndUntilAction deepCopy(@Nullable DiscountCodeSetValidFromAndUntilAction template) factory method to create a deep copy of DiscountCodeSetValidFromAndUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeSetValidFromAndUntilAction- Returns:
- builder
-
builder
static DiscountCodeSetValidFromAndUntilActionBuilder builder(DiscountCodeSetValidFromAndUntilAction template) create builder for DiscountCodeSetValidFromAndUntilAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeSetValidFromAndUntilAction
default <T> T withDiscountCodeSetValidFromAndUntilAction(Function<DiscountCodeSetValidFromAndUntilAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetValidFromAndUntilAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-