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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for DiscountCodeChangeGroupsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DiscountCodeChangeGroupsActionbuilder(DiscountCodeChangeGroupsAction template) create builder for DiscountCodeChangeGroupsAction instancecopyDeep()deepCopy(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 DiscountCodeChangeGroupsActionvoidNew value to set.voidNew value to set.static com.fasterxml.jackson.core.type.TypeReference<DiscountCodeChangeGroupsAction>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
-
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
-
copyDeep
DiscountCodeChangeGroupsAction copyDeep()- Specified by:
copyDeepin interfaceDiscountCodeUpdateAction
-
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
-