Interface ProductDiscountSetValidFromAndUntilAction
- All Superinterfaces:
ProductDiscountUpdateAction
,ResourceUpdateAction<ProductDiscountUpdateAction>
- All Known Implementing Classes:
ProductDiscountSetValidFromAndUntilActionImpl
ProductDiscountSetValidFromAndUntilAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountSetValidFromAndUntilAction productDiscountSetValidFromAndUntilAction = ProductDiscountSetValidFromAndUntilAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductDiscountSetValidFromAndUntilAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDiscountSetValidFromAndUntilActioncreate builder for ProductDiscountSetValidFromAndUntilAction instancefactory method to create a deep copy of ProductDiscountSetValidFromAndUntilActionValue to set.Value to set.of()
factory methodof
(ProductDiscountSetValidFromAndUntilAction template) factory method to create a shallow copy ProductDiscountSetValidFromAndUntilActionvoid
setValidFrom
(ZonedDateTime validFrom) Value to set.void
setValidUntil
(ZonedDateTime validUntil) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ProductDiscountSetValidFromAndUntilAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductDiscountSetValidFromAndUntilAction
(Function<ProductDiscountSetValidFromAndUntilAction, T> helper) 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_AND_UNTIL
discriminator value for ProductDiscountSetValidFromAndUntilAction- See Also:
-
-
Method Details
-
getValidFrom
ZonedDateTime getValidFrom()Value to set. Take Eventual Consistency into account for calculated undiscounted values.
- Returns:
- validFrom
-
getValidUntil
ZonedDateTime getValidUntil()Value to set. Take Eventual Consistency into account for calculated undiscounted values.
- Returns:
- validUntil
-
setValidFrom
Value to set. Take Eventual Consistency into account for calculated undiscounted values.
- Parameters:
validFrom
- value to be set
-
setValidUntil
Value to set. Take Eventual Consistency into account for calculated undiscounted values.
- Parameters:
validUntil
- value to be set
-
of
factory method- Returns:
- instance of ProductDiscountSetValidFromAndUntilAction
-
of
static ProductDiscountSetValidFromAndUntilAction of(ProductDiscountSetValidFromAndUntilAction template) factory method to create a shallow copy ProductDiscountSetValidFromAndUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDiscountSetValidFromAndUntilAction deepCopy(@Nullable ProductDiscountSetValidFromAndUntilAction template) factory method to create a deep copy of ProductDiscountSetValidFromAndUntilAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDiscountSetValidFromAndUntilAction- Returns:
- builder
-
builder
static ProductDiscountSetValidFromAndUntilActionBuilder builder(ProductDiscountSetValidFromAndUntilAction template) create builder for ProductDiscountSetValidFromAndUntilAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDiscountSetValidFromAndUntilAction
default <T> T withProductDiscountSetValidFromAndUntilAction(Function<ProductDiscountSetValidFromAndUntilAction, 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<ProductDiscountSetValidFromAndUntilAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-