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