Interface CartDiscountSetValidUntilAction
- All Superinterfaces:
CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
CartDiscountSetValidUntilAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountSetValidUntilAction cartDiscountSetValidUntilAction = CartDiscountSetValidUntilAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountSetValidUntilAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountSetValidUntilActionbuilder
(CartDiscountSetValidUntilAction template) create builder for CartDiscountSetValidUntilAction instancedeepCopy
(CartDiscountSetValidUntilAction template) factory method to create a deep copy of CartDiscountSetValidUntilActionValue to set.of()
factory methodof
(CartDiscountSetValidUntilAction template) factory method to create a shallow copy CartDiscountSetValidUntilActionvoid
setValidUntil
(ZonedDateTime validUntil) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountSetValidUntilAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountUpdateAction
getAction, withCartDiscountUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_VALID_UNTIL
discriminator value for CartDiscountSetValidUntilAction- See Also:
-
-
Method Details
-
getValidUntil
ZonedDateTime getValidUntil()Value to set. If empty, any existing value will be removed.
- Returns:
- validUntil
-
setValidUntil
Value to set. If empty, any existing value will be removed.
- Parameters:
validUntil
- value to be set
-
of
factory method- Returns:
- instance of CartDiscountSetValidUntilAction
-
of
factory method to create a shallow copy CartDiscountSetValidUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountSetValidUntilAction deepCopy(@Nullable CartDiscountSetValidUntilAction template) factory method to create a deep copy of CartDiscountSetValidUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountSetValidUntilAction- Returns:
- builder
-
builder
create builder for CartDiscountSetValidUntilAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountSetValidUntilAction
default <T> T withCartDiscountSetValidUntilAction(Function<CartDiscountSetValidUntilAction, 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<CartDiscountSetValidUntilAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-