Class DiscountCodeChangeGroupsActionBuilder
java.lang.Object
com.commercetools.api.models.discount_code.DiscountCodeChangeGroupsActionBuilder
- All Implemented Interfaces:
Builder<DiscountCodeChangeGroupsAction>
public class DiscountCodeChangeGroupsActionBuilder
extends Object
implements Builder<DiscountCodeChangeGroupsAction>
DiscountCodeChangeGroupsActionBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountCodeChangeGroupsAction with checking for non-null required valuesbuilds DiscountCodeChangeGroupsAction without checking for non-null required valuesNew value to set.New value to set.New value to set.of()
factory method for an instance of DiscountCodeChangeGroupsActionBuilderof
(DiscountCodeChangeGroupsAction template) create builder for DiscountCodeChangeGroupsAction instanceplusGroups
(String... groups) New value to set.
-
Constructor Details
-
DiscountCodeChangeGroupsActionBuilder
public DiscountCodeChangeGroupsActionBuilder()
-
-
Method Details
-
groups
New value to set. An empty array removes the DiscountCode from all groups.
- Parameters:
groups
- value to be set- Returns:
- Builder
-
groups
New value to set. An empty array removes the DiscountCode from all groups.
- Parameters:
groups
- value to be set- Returns:
- Builder
-
plusGroups
New value to set. An empty array removes the DiscountCode from all groups.
- Parameters:
groups
- value to be set- Returns:
- Builder
-
getGroups
New value to set. An empty array removes the DiscountCode from all groups.
- Returns:
- groups
-
build
builds DiscountCodeChangeGroupsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<DiscountCodeChangeGroupsAction>
- Returns:
- DiscountCodeChangeGroupsAction
-
buildUnchecked
builds DiscountCodeChangeGroupsAction without checking for non-null required values- Returns:
- DiscountCodeChangeGroupsAction
-
of
factory method for an instance of DiscountCodeChangeGroupsActionBuilder- Returns:
- builder
-
of
create builder for DiscountCodeChangeGroupsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-