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