Class ProductDiscountSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountSetKeyActionBuilder
- All Implemented Interfaces:
Builder<ProductDiscountSetKeyAction>
public class ProductDiscountSetKeyActionBuilder
extends Object
implements Builder<ProductDiscountSetKeyAction>
ProductDiscountSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountSetKeyAction productDiscountSetKeyAction = ProductDiscountSetKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountSetKeyAction with checking for non-null required valuesbuilds ProductDiscountSetKeyAction without checking for non-null required valuesgetKey()
Value to set.Value to set.of()
factory method for an instance of ProductDiscountSetKeyActionBuilderof
(ProductDiscountSetKeyAction template) create builder for ProductDiscountSetKeyAction instance
-
Constructor Details
-
ProductDiscountSetKeyActionBuilder
public ProductDiscountSetKeyActionBuilder()
-
-
Method Details
-
key
Value to set. If empty, any existing value will be removed.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Value to set. If empty, any existing value will be removed.
- Returns:
- key
-
build
builds ProductDiscountSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDiscountSetKeyAction>
- Returns:
- ProductDiscountSetKeyAction
-
buildUnchecked
builds ProductDiscountSetKeyAction without checking for non-null required values- Returns:
- ProductDiscountSetKeyAction
-
of
factory method for an instance of ProductDiscountSetKeyActionBuilder- Returns:
- builder
-
of
create builder for ProductDiscountSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-