Interface DiscountCodeSetMaxApplicationsAction
- All Superinterfaces:
DiscountCodeUpdateAction,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeSetMaxApplicationsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetMaxApplicationsAction discountCodeSetMaxApplicationsAction = DiscountCodeSetMaxApplicationsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DiscountCodeSetMaxApplicationsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DiscountCodeSetMaxApplicationsActionbuilder(DiscountCodeSetMaxApplicationsAction template) create builder for DiscountCodeSetMaxApplicationsAction instancecopyDeep()deepCopy(DiscountCodeSetMaxApplicationsAction template) factory method to create a deep copy of DiscountCodeSetMaxApplicationsActionValue to set.of()factory methodof(DiscountCodeSetMaxApplicationsAction template) factory method to create a shallow copy DiscountCodeSetMaxApplicationsActionvoidsetMaxApplications(Long maxApplications) Value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeSetMaxApplicationsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.discount_code.DiscountCodeUpdateAction
getAction, withDiscountCodeUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_MAX_APPLICATIONS
discriminator value for DiscountCodeSetMaxApplicationsAction- See Also:
-
-
Method Details
-
getMaxApplications
Long getMaxApplications()Value to set.
If empty, any existing value will be removed and the DiscountCode can be applied any number of times.
- Returns:
- maxApplications
-
setMaxApplications
Value to set.
If empty, any existing value will be removed and the DiscountCode can be applied any number of times.
- Parameters:
maxApplications- value to be set
-
of
factory method- Returns:
- instance of DiscountCodeSetMaxApplicationsAction
-
of
factory method to create a shallow copy DiscountCodeSetMaxApplicationsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountCodeSetMaxApplicationsAction copyDeep()- Specified by:
copyDeepin interfaceDiscountCodeUpdateAction
-
deepCopy
@Nullable static DiscountCodeSetMaxApplicationsAction deepCopy(@Nullable DiscountCodeSetMaxApplicationsAction template) factory method to create a deep copy of DiscountCodeSetMaxApplicationsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeSetMaxApplicationsAction- Returns:
- builder
-
builder
static DiscountCodeSetMaxApplicationsActionBuilder builder(DiscountCodeSetMaxApplicationsAction template) create builder for DiscountCodeSetMaxApplicationsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeSetMaxApplicationsAction
default <T> T withDiscountCodeSetMaxApplicationsAction(Function<DiscountCodeSetMaxApplicationsAction, 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<DiscountCodeSetMaxApplicationsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-