Interface StoreKeyReference
- All Superinterfaces:
KeyReference,WithKey
KeyReference to a Store.
Example to create an instance using the builder pattern
StoreKeyReference storeKeyReference = StoreKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StoreKeyReferenceBuilderbuilder()builder factory method for StoreKeyReferencestatic StoreKeyReferenceBuilderbuilder(StoreKeyReference template) create builder for StoreKeyReference instancecopyDeep()static StoreKeyReferencedeepCopy(StoreKeyReference template) factory method to create a deep copy of StoreKeyReference@NotNull StringgetKey()Unique and immutable key of the referenced Store.static StoreKeyReferenceof()factory methodstatic StoreKeyReferenceof(StoreKeyReference template) factory method to create a shallow copy StoreKeyReferencevoidUnique and immutable key of the referenced Store.static com.fasterxml.jackson.core.type.TypeReference<StoreKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStoreKeyReference(Function<StoreKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
STORE
discriminator value for StoreKeyReference- See Also:
-
-
Method Details
-
getKey
Unique and immutable key of the referenced Store.
- Specified by:
getKeyin interfaceKeyReference- Specified by:
getKeyin interfaceWithKey- Returns:
- key
-
setKey
Unique and immutable key of the referenced Store.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of StoreKeyReference
-
of
factory method to create a shallow copy StoreKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StoreKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
deepCopy
factory method to create a deep copy of StoreKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreKeyReference- Returns:
- builder
-
builder
create builder for StoreKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStoreKeyReference
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-