Interface DiscountCodeSetValidFromAction
- All Superinterfaces:
DiscountCodeUpdateAction
,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeSetValidFromAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetValidFromAction discountCodeSetValidFromAction = DiscountCodeSetValidFromAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeSetValidFromAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeSetValidFromActionbuilder
(DiscountCodeSetValidFromAction template) create builder for DiscountCodeSetValidFromAction instancedeepCopy
(DiscountCodeSetValidFromAction template) factory method to create a deep copy of DiscountCodeSetValidFromActionValue to set that must be earlier thanvalidUntil
.of()
factory methodof
(DiscountCodeSetValidFromAction template) factory method to create a shallow copy DiscountCodeSetValidFromActionvoid
setValidFrom
(ZonedDateTime validFrom) Value to set that must be earlier thanvalidUntil
.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetValidFromAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_VALID_FROM
discriminator value for DiscountCodeSetValidFromAction- See Also:
-
-
Method Details
-
getValidFrom
ZonedDateTime getValidFrom()Value to set that must be earlier than
validUntil
. If empty, any existing value will be removed.- Returns:
- validFrom
-
setValidFrom
Value to set that must be earlier than
validUntil
. If empty, any existing value will be removed.- Parameters:
validFrom
- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeSetValidFromAction
-
of
factory method to create a shallow copy DiscountCodeSetValidFromAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountCodeSetValidFromAction deepCopy(@Nullable DiscountCodeSetValidFromAction template) factory method to create a deep copy of DiscountCodeSetValidFromAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeSetValidFromAction- Returns:
- builder
-
builder
create builder for DiscountCodeSetValidFromAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeSetValidFromAction
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<DiscountCodeSetValidFromAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-