Interface CategoryReference
- All Superinterfaces:
Identifiable<Category>
,Reference
,ReferenceMixin
- All Known Implementing Classes:
CategoryReferenceImpl
Reference to a Category.
Example to create an instance using the builder pattern
CategoryReference categoryReference = CategoryReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryReferenceBuilder
builder()
builder factory method for CategoryReferencestatic CategoryReferenceBuilder
builder
(CategoryReference template) create builder for CategoryReference instancestatic CategoryReference
deepCopy
(CategoryReference template) factory method to create a deep copy of CategoryReference@NotNull String
getId()
Unique identifier of the referenced Category.@Valid Category
getObj()
Contains the representation of the expanded Category.static CategoryReference
of()
factory methodstatic CategoryReference
of
(CategoryReference template) factory method to create a shallow copy CategoryReferencevoid
Unique identifier of the referenced Category.void
Contains the representation of the expanded Category.static com.fasterxml.jackson.core.type.TypeReference<CategoryReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCategoryReference
(Function<CategoryReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods 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.
- Returns:
- obj
-
getId
Unique identifier of the referenced Category.
- Specified by:
getId
in interfaceIdentifiable<Category>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in 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
-
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
-