Class ProductDiscountKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.ProductDiscountKeyReferenceBuilder
- All Implemented Interfaces:
Builder<ProductDiscountKeyReference>
public class ProductDiscountKeyReferenceBuilder
extends Object
implements Builder<ProductDiscountKeyReference>
ProductDiscountKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountKeyReference productDiscountKeyReference = ProductDiscountKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDiscountKeyReference with checking for non-null required valuesbuilds ProductDiscountKeyReference without checking for non-null required valuesgetKey()
value of key}set the value to the keyof()
factory method for an instance of ProductDiscountKeyReferenceBuilderof
(ProductDiscountKeyReference template) create builder for ProductDiscountKeyReference instance
-
Constructor Details
-
ProductDiscountKeyReferenceBuilder
public ProductDiscountKeyReferenceBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
build
builds ProductDiscountKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDiscountKeyReference>
- Returns:
- ProductDiscountKeyReference
-
buildUnchecked
builds ProductDiscountKeyReference without checking for non-null required values- Returns:
- ProductDiscountKeyReference
-
of
factory method for an instance of ProductDiscountKeyReferenceBuilder- Returns:
- builder
-
of
create builder for ProductDiscountKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-