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