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