Interface ProductKeyReference
- All Superinterfaces:
KeyReference
References a product by key.
Example to create an instance using the builder pattern
ProductKeyReference productKeyReference = ProductKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductKeyReferenceBuilder
builder()
builder factory method for ProductKeyReferencestatic ProductKeyReferenceBuilder
builder
(ProductKeyReference template) create builder for ProductKeyReference instancestatic ProductKeyReference
deepCopy
(ProductKeyReference template) factory method to create a deep copy of ProductKeyReferencestatic ProductKeyReference
of()
factory methodstatic ProductKeyReference
of
(ProductKeyReference template) factory method to create a shallow copy ProductKeyReferencestatic com.fasterxml.jackson.core.type.TypeReference<ProductKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductKeyReference
(Function<ProductKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
PRODUCT
discriminator value for ProductKeyReference- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of ProductKeyReference
-
of
factory method to create a shallow copy ProductKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductKeyReference- Returns:
- builder
-
builder
create builder for ProductKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductKeyReference
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
-