Class DiscountCodeSetMaxApplicationsActionBuilder
java.lang.Object
com.commercetools.api.models.discount_code.DiscountCodeSetMaxApplicationsActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<DiscountCodeSetMaxApplicationsAction>
public class DiscountCodeSetMaxApplicationsActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<DiscountCodeSetMaxApplicationsAction>
DiscountCodeSetMaxApplicationsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetMaxApplicationsAction discountCodeSetMaxApplicationsAction = DiscountCodeSetMaxApplicationsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountCodeSetMaxApplicationsAction with checking for non-null required valuesbuilds DiscountCodeSetMaxApplicationsAction without checking for non-null required valuesValue to set.maxApplications
(Long maxApplications) Value to set.of()
factory method for an instance of DiscountCodeSetMaxApplicationsActionBuilderof
(DiscountCodeSetMaxApplicationsAction template) create builder for DiscountCodeSetMaxApplicationsAction instance
-
Constructor Details
-
DiscountCodeSetMaxApplicationsActionBuilder
public DiscountCodeSetMaxApplicationsActionBuilder()
-
-
Method Details
-
maxApplications
Value to set. If empty, any existing value will be removed.
- Parameters:
maxApplications
- value to be set- Returns:
- Builder
-
getMaxApplications
Value to set. If empty, any existing value will be removed.
- Returns:
- maxApplications
-
build
builds DiscountCodeSetMaxApplicationsAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<DiscountCodeSetMaxApplicationsAction>
- Returns:
- DiscountCodeSetMaxApplicationsAction
-
buildUnchecked
builds DiscountCodeSetMaxApplicationsAction without checking for non-null required values- Returns:
- DiscountCodeSetMaxApplicationsAction
-
of
factory method for an instance of DiscountCodeSetMaxApplicationsActionBuilder- Returns:
- builder
-
of
public static DiscountCodeSetMaxApplicationsActionBuilder of(DiscountCodeSetMaxApplicationsAction template) create builder for DiscountCodeSetMaxApplicationsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-