Class DiscountCodeSetMaxApplicationsPerCustomerActionBuilder
java.lang.Object
com.commercetools.api.models.discount_code.DiscountCodeSetMaxApplicationsPerCustomerActionBuilder
- All Implemented Interfaces:
Builder<DiscountCodeSetMaxApplicationsPerCustomerAction>
public class DiscountCodeSetMaxApplicationsPerCustomerActionBuilder
extends Object
implements Builder<DiscountCodeSetMaxApplicationsPerCustomerAction>
DiscountCodeSetMaxApplicationsPerCustomerActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetMaxApplicationsPerCustomerAction discountCodeSetMaxApplicationsPerCustomerAction = DiscountCodeSetMaxApplicationsPerCustomerAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountCodeSetMaxApplicationsPerCustomerAction with checking for non-null required valuesbuilds DiscountCodeSetMaxApplicationsPerCustomerAction without checking for non-null required valuesValue to set.maxApplicationsPerCustomer
(Long maxApplicationsPerCustomer) Value to set.of()
factory method for an instance of DiscountCodeSetMaxApplicationsPerCustomerActionBuildercreate builder for DiscountCodeSetMaxApplicationsPerCustomerAction instance
-
Constructor Details
-
DiscountCodeSetMaxApplicationsPerCustomerActionBuilder
public DiscountCodeSetMaxApplicationsPerCustomerActionBuilder()
-
-
Method Details
-
maxApplicationsPerCustomer
public DiscountCodeSetMaxApplicationsPerCustomerActionBuilder maxApplicationsPerCustomer(@Nullable Long maxApplicationsPerCustomer) Value to set.
If empty, any existing value will be removed and the DiscountCode can be applied any number of times.
- Parameters:
maxApplicationsPerCustomer
- value to be set- Returns:
- Builder
-
getMaxApplicationsPerCustomer
Value to set.
If empty, any existing value will be removed and the DiscountCode can be applied any number of times.
- Returns:
- maxApplicationsPerCustomer
-
build
builds DiscountCodeSetMaxApplicationsPerCustomerAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<DiscountCodeSetMaxApplicationsPerCustomerAction>
- Returns:
- DiscountCodeSetMaxApplicationsPerCustomerAction
-
buildUnchecked
builds DiscountCodeSetMaxApplicationsPerCustomerAction without checking for non-null required values- Returns:
- DiscountCodeSetMaxApplicationsPerCustomerAction
-
of
factory method for an instance of DiscountCodeSetMaxApplicationsPerCustomerActionBuilder- Returns:
- builder
-
of
public static DiscountCodeSetMaxApplicationsPerCustomerActionBuilder of(DiscountCodeSetMaxApplicationsPerCustomerAction template) create builder for DiscountCodeSetMaxApplicationsPerCustomerAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-