Interface CategoryKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a Category.
Example to create an instance using the builder pattern
CategoryKeyReference categoryKeyReference = CategoryKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryKeyReferenceBuilderbuilder()builder factory method for CategoryKeyReferencestatic CategoryKeyReferenceBuilderbuilder(CategoryKeyReference template) create builder for CategoryKeyReference instancecopyDeep()static CategoryKeyReferencedeepCopy(CategoryKeyReference template) factory method to create a deep copy of CategoryKeyReference@NotNull StringgetKey()User-defined unique identifier of the referenced Category.static CategoryKeyReferenceof()factory methodstatic CategoryKeyReferenceof(CategoryKeyReference template) factory method to create a shallow copy CategoryKeyReferencevoidUser-defined unique identifier of the referenced Category.static com.fasterxml.jackson.core.type.TypeReference<CategoryKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCategoryKeyReference(Function<CategoryKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
CATEGORY
discriminator value for CategoryKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced Category.
- Specified by:
getKeyin interfaceKeyReference- Returns:
- key
-
setKey
User-defined unique identifier of the referenced Category.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of CategoryKeyReference
-
of
factory method to create a shallow copy CategoryKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CategoryKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
deepCopy
factory method to create a deep copy of CategoryKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategoryKeyReference- Returns:
- builder
-
builder
create builder for CategoryKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCategoryKeyReference
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
-