Interface ProductTypeKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a ProductType.
Example to create an instance using the builder pattern
ProductTypeKeyReference productTypeKeyReference = ProductTypeKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTypeKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTypeKeyReferencebuilder(ProductTypeKeyReference template) create builder for ProductTypeKeyReference instancecopyDeep()static ProductTypeKeyReferencedeepCopy(ProductTypeKeyReference template) factory method to create a deep copy of ProductTypeKeyReference@NotNull StringgetKey()User-defined unique identifier of the referenced ProductType.static ProductTypeKeyReferenceof()factory methodstatic ProductTypeKeyReferenceof(ProductTypeKeyReference template) factory method to create a shallow copy ProductTypeKeyReferencevoidUser-defined unique identifier of the referenced ProductType.static com.fasterxml.jackson.core.type.TypeReference<ProductTypeKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
PRODUCT_TYPE
discriminator value for ProductTypeKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced ProductType.
- Specified by:
getKeyin interfaceKeyReference- Returns:
- key
-
setKey
User-defined unique identifier of the referenced ProductType.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of ProductTypeKeyReference
-
of
factory method to create a shallow copy ProductTypeKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTypeKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
deepCopy
factory method to create a deep copy of ProductTypeKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTypeKeyReference- Returns:
- builder
-
builder
create builder for ProductTypeKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTypeKeyReference
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
-