Interface CategoryReference
- All Superinterfaces:
Reference
CategoryReference
Example to create an instance using the builder pattern
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 CategoryReferencestatic CategoryReference
of()
factory methodstatic CategoryReference
of
(CategoryReference template) factory method to create a shallow copy CategoryReferencestatic 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.ml.models.common.Reference
getId, getTypeId, setId, withReference
-
Field Details
-
CATEGORY
discriminator value for CategoryReference- See Also:
-
-
Method Details
-
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
-