Class StoreKeyReferenceBuilder
java.lang.Object
com.commercetools.api.models.store.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()
Unique and immutable key of the referenced Store.Unique and immutable key of the referenced Store.static 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
Unique and immutable key of the referenced Store.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
Unique and immutable key of the referenced Store.
- 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
-