Interface CategoryReference
- All Superinterfaces:
Reference
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryReferenceBuilderbuilder()builder factory method for CategoryReferencestatic CategoryReferenceBuilderbuilder(CategoryReference template) create builder for CategoryReference instancecopyDeep()static CategoryReferencedeepCopy(CategoryReference template) factory method to create a deep copy of CategoryReference@NotNull StringgetId()Unique identifier of the referenced Category.static CategoryReferenceof()factory methodstatic CategoryReferenceof(CategoryReference template) factory method to create a shallow copy CategoryReferencevoidUnique identifier of the referenced Category.static com.fasterxml.jackson.core.type.TypeReference<CategoryReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCategoryReference(Function<CategoryReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.history.models.common.Reference
getTypeId, withReference
-
Field Details
-
CATEGORY
discriminator value for CategoryReference- See Also:
-
-
Method Details
-
getId
Unique identifier of the referenced Category.
-
setId
Unique identifier of the referenced Category.
-
of
factory method- Returns:
- instance of CategoryReference
-
of
factory method to create a shallow copy CategoryReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CategoryReference copyDeep() -
deepCopy
factory method to create a deep copy of CategoryReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategoryReference- Returns:
- builder
-
builder
create builder for CategoryReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCategoryReference
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
-