Interface CartDiscountSetValidFromAction
- All Superinterfaces:
CartDiscountUpdateAction
,ResourceUpdateAction<CartDiscountUpdateAction>
CartDiscountSetValidFromAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountSetValidFromAction cartDiscountSetValidFromAction = CartDiscountSetValidFromAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountSetValidFromAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountSetValidFromActionbuilder
(CartDiscountSetValidFromAction template) create builder for CartDiscountSetValidFromAction instancedeepCopy
(CartDiscountSetValidFromAction template) factory method to create a deep copy of CartDiscountSetValidFromActionValue to set.of()
factory methodof
(CartDiscountSetValidFromAction template) factory method to create a shallow copy CartDiscountSetValidFromActionvoid
setValidFrom
(ZonedDateTime validFrom) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountSetValidFromAction>
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_FROM
discriminator value for CartDiscountSetValidFromAction- See Also:
-
-
Method Details
-
getValidFrom
ZonedDateTime getValidFrom()Value to set. If empty, any existing value will be removed.
- Returns:
- validFrom
-
setValidFrom
Value to set. If empty, any existing value will be removed.
- Parameters:
validFrom
- value to be set
-
of
factory method- Returns:
- instance of CartDiscountSetValidFromAction
-
of
factory method to create a shallow copy CartDiscountSetValidFromAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountSetValidFromAction deepCopy(@Nullable CartDiscountSetValidFromAction template) factory method to create a deep copy of CartDiscountSetValidFromAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountSetValidFromAction- Returns:
- builder
-
builder
create builder for CartDiscountSetValidFromAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountSetValidFromAction
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<CartDiscountSetValidFromAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-