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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DiscountCodeSetValidUntilAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DiscountCodeSetValidUntilActionbuilder(DiscountCodeSetValidUntilAction template) create builder for DiscountCodeSetValidUntilAction instancecopyDeep()deepCopy(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 DiscountCodeSetValidUntilActionvoidsetValidUntil(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateActionMethods 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
-
copyDeep
DiscountCodeSetValidUntilAction copyDeep()- Specified by:
copyDeepin interfaceDiscountCodeUpdateAction
-
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
-