Interface DiscountCodeSetValidUntilAction
- All Superinterfaces:
DiscountCodeUpdateAction
,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeSetValidUntilAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetValidUntilAction discountCodeSetValidUntilAction = DiscountCodeSetValidUntilAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeSetValidUntilAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeSetValidUntilActionbuilder
(DiscountCodeSetValidUntilAction template) create builder for DiscountCodeSetValidUntilAction instancedeepCopy
(DiscountCodeSetValidUntilAction template) factory method to create a deep copy of DiscountCodeSetValidUntilActionValue to set that must be later thanvalidFrom
.of()
factory methodof
(DiscountCodeSetValidUntilAction template) factory method to create a shallow copy DiscountCodeSetValidUntilActionvoid
setValidUntil
(ZonedDateTime validUntil) Value to set that must be later thanvalidFrom
.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetValidUntilAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_UNTIL
discriminator value for DiscountCodeSetValidUntilAction- See Also:
-
-
Method Details
-
getValidUntil
ZonedDateTime getValidUntil()Value to set that must be later than
validFrom
. If empty, any existing value will be removed.- Returns:
- validUntil
-
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 DiscountCodeSetValidUntilAction
-
of
factory method to create a shallow copy DiscountCodeSetValidUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountCodeSetValidUntilAction deepCopy(@Nullable DiscountCodeSetValidUntilAction template) factory method to create a deep copy of DiscountCodeSetValidUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeSetValidUntilAction- Returns:
- builder
-
builder
create builder for DiscountCodeSetValidUntilAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeSetValidUntilAction
default <T> T withDiscountCodeSetValidUntilAction(Function<DiscountCodeSetValidUntilAction, 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<DiscountCodeSetValidUntilAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-