Class DiscountCodeSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.discount_code.DiscountCodeSetKeyActionBuilder
- All Implemented Interfaces:
Builder<DiscountCodeSetKeyAction>
public class DiscountCodeSetKeyActionBuilder
extends Object
implements Builder<DiscountCodeSetKeyAction>
DiscountCodeSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetKeyAction discountCodeSetKeyAction = DiscountCodeSetKeyAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds DiscountCodeSetKeyAction with checking for non-null required valuesbuilds DiscountCodeSetKeyAction without checking for non-null required valuesgetKey()Value to set.Value to set.of()factory method for an instance of DiscountCodeSetKeyActionBuilderof(DiscountCodeSetKeyAction template) create builder for DiscountCodeSetKeyAction instance
-
Constructor Details
-
DiscountCodeSetKeyActionBuilder
public DiscountCodeSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If omitted, any existing value is removed.
If the value is used by another Discount Code, a DuplicateField error is returned.
- Parameters:
key- value to be set- Returns:
- Builder
-
getKey
Value to set. If omitted, any existing value is removed.
If the value is used by another Discount Code, a DuplicateField error is returned.
- Returns:
- key
-
build
builds DiscountCodeSetKeyAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<DiscountCodeSetKeyAction>- Returns:
- DiscountCodeSetKeyAction
-
buildUnchecked
builds DiscountCodeSetKeyAction without checking for non-null required values- Returns:
- DiscountCodeSetKeyAction
-
of
factory method for an instance of DiscountCodeSetKeyActionBuilder- Returns:
- builder
-
of
create builder for DiscountCodeSetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-