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
-
Method Summary
Modifier and TypeMethodDescriptionstatic StoreKeyReferenceBuilder
builder()
builder factory method for StoreKeyReferencestatic StoreKeyReferenceBuilder
builder
(StoreKeyReference template) create builder for StoreKeyReference instancestatic StoreKeyReference
deepCopy
(StoreKeyReference template) factory method to create a deep copy of StoreKeyReference@NotNull String
getKey()
Unique and immutable key of the referenced Store.static StoreKeyReference
of()
factory methodstatic StoreKeyReference
of
(StoreKeyReference template) factory method to create a shallow copy StoreKeyReferencevoid
Unique and immutable key of the referenced Store.static com.fasterxml.jackson.core.type.TypeReference<StoreKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStoreKeyReference
(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:
getKey
in interfaceKeyReference
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setKey
Unique and immutable key of the referenced Store.
- Specified by:
setKey
in 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
-
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
-