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