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