Interface ProductDiscountSetValidFromAction
- All Superinterfaces:
ProductDiscountUpdateAction
,ResourceUpdateAction<ProductDiscountUpdateAction>
ProductDiscountSetValidFromAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountSetValidFromAction productDiscountSetValidFromAction = ProductDiscountSetValidFromAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductDiscountSetValidFromAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDiscountSetValidFromActionbuilder
(ProductDiscountSetValidFromAction template) create builder for ProductDiscountSetValidFromAction instancedeepCopy
(ProductDiscountSetValidFromAction template) factory method to create a deep copy of ProductDiscountSetValidFromActionValue to set.of()
factory methodof
(ProductDiscountSetValidFromAction template) factory method to create a shallow copy ProductDiscountSetValidFromActionvoid
setValidFrom
(ZonedDateTime validFrom) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountSetValidFromAction>
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_FROM
discriminator value for ProductDiscountSetValidFromAction- See Also:
-
-
Method Details
-
getValidFrom
ZonedDateTime getValidFrom()Value to set. If empty, any existing value will be removed. Take Eventual Consistency into account for calculated discount values.
- Returns:
- validFrom
-
setValidFrom
Value to set. If empty, any existing value will be removed. Take Eventual Consistency into account for calculated discount values.
- Parameters:
validFrom
- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountSetValidFromAction
-
of
factory method to create a shallow copy ProductDiscountSetValidFromAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDiscountSetValidFromAction deepCopy(@Nullable ProductDiscountSetValidFromAction template) factory method to create a deep copy of ProductDiscountSetValidFromAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountSetValidFromAction- Returns:
- builder
-
builder
create builder for ProductDiscountSetValidFromAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountSetValidFromAction
default <T> T withProductDiscountSetValidFromAction(Function<ProductDiscountSetValidFromAction, 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<ProductDiscountSetValidFromAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-