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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountCodeSetKeyAction with checking for non-null required valuesbuilds DiscountCodeSetKeyAction without checking for non-null required valuesgetKey()
Unique value to set.Unique 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
Unique value to set. If empty, any existing value will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Unique value to set. If empty, any existing value will be removed.
- Returns:
- key
-
build
builds DiscountCodeSetKeyAction with checking for non-null required values- Specified by:
build
in 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
-