Interface CategoryReference
- All Superinterfaces:
Identifiable<Category>,IdentifiableObjHolder<Category>,Reference,ReferenceMixin
public interface CategoryReference
extends Reference, Identifiable<Category>, IdentifiableObjHolder<Category>
-
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.@Valid CategorygetObj()Contains the representation of the expanded Category.static CategoryReferenceof()factory methodstatic CategoryReferenceof(CategoryReference template) factory method to create a shallow copy CategoryReferencevoidUnique identifier of the referenced Category.voidContains the representation of the expanded 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.api.models.common.Reference
getTypeId, withReferenceMethods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
CATEGORY
discriminator value for CategoryReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Category. Only present in responses to requests with Reference Expansion for Categories.
- Specified by:
getObjin interfaceIdentifiableObjHolder<Category>- Returns:
- obj
-
getId
Unique identifier of the referenced Category.
- Specified by:
getIdin interfaceIdentifiable<Category>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded Category. Only present in responses to requests with Reference Expansion for Categories.
- Parameters:
obj- value to be set
-
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
-