Interface ProductKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a Product.
Example to create an instance using the builder pattern
ProductKeyReference productKeyReference = ProductKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductKeyReferenceBuilder
builder()
builder factory method for ProductKeyReferencestatic ProductKeyReferenceBuilder
builder
(ProductKeyReference template) create builder for ProductKeyReference instancecopyDeep()
static ProductKeyReference
deepCopy
(ProductKeyReference template) factory method to create a deep copy of ProductKeyReference@NotNull String
getKey()
User-defined unique identifier of the referenced Product.static ProductKeyReference
of()
factory methodstatic ProductKeyReference
of
(ProductKeyReference template) factory method to create a shallow copy ProductKeyReferencevoid
User-defined unique identifier of the referenced Product.static 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
getTypeId, withKeyReference
-
Field Details
-
PRODUCT
discriminator value for ProductKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced Product.
- Specified by:
getKey
in interfaceKeyReference
- Returns:
- key
-
setKey
User-defined unique identifier of the referenced Product.
- Specified by:
setKey
in interfaceKeyReference
- Parameters:
key
- value to be set
-
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
-
copyDeep
ProductKeyReference copyDeep()- Specified by:
copyDeep
in interfaceKeyReference
-
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
-