Interface DiscountCodeChangeGroupsAction
- All Superinterfaces:
DiscountCodeUpdateAction
,ResourceUpdateAction<DiscountCodeUpdateAction>
DiscountCodeChangeGroupsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeChangeGroupsAction discountCodeChangeGroupsAction = DiscountCodeChangeGroupsAction.builder()
.plusGroups(groupsBuilder -> groupsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DiscountCodeChangeGroupsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DiscountCodeChangeGroupsActionbuilder
(DiscountCodeChangeGroupsAction template) create builder for DiscountCodeChangeGroupsAction instancedeepCopy
(DiscountCodeChangeGroupsAction template) factory method to create a deep copy of DiscountCodeChangeGroupsActionNew value to set.of()
factory methodof
(DiscountCodeChangeGroupsAction template) factory method to create a shallow copy DiscountCodeChangeGroupsActionvoid
New value to set.void
New value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeChangeGroupsAction>
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
-
CHANGE_GROUPS
discriminator value for DiscountCodeChangeGroupsAction- See Also:
-
-
Method Details
-
getGroups
New value to set. An empty array removes the DiscountCode from all groups.
- Returns:
- groups
-
setGroups
New value to set. An empty array removes the DiscountCode from all groups.
- Parameters:
groups
- values to be set
-
setGroups
New value to set. An empty array removes the DiscountCode from all groups.
- Parameters:
groups
- values to be set
-
of
factory method- Returns:
- instance of DiscountCodeChangeGroupsAction
-
of
factory method to create a shallow copy DiscountCodeChangeGroupsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static DiscountCodeChangeGroupsAction deepCopy(@Nullable DiscountCodeChangeGroupsAction template) factory method to create a deep copy of DiscountCodeChangeGroupsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountCodeChangeGroupsAction- Returns:
- builder
-
builder
create builder for DiscountCodeChangeGroupsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountCodeChangeGroupsAction
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<DiscountCodeChangeGroupsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-