Interface CategoryKeyReference
- All Superinterfaces:
KeyReference
References a category by key.
Example to create an instance using the builder pattern
CategoryKeyReference categoryKeyReference = CategoryKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryKeyReferenceBuilder
builder()
builder factory method for CategoryKeyReferencestatic CategoryKeyReferenceBuilder
builder
(CategoryKeyReference template) create builder for CategoryKeyReference instancestatic CategoryKeyReference
deepCopy
(CategoryKeyReference template) factory method to create a deep copy of CategoryKeyReferencestatic CategoryKeyReference
of()
factory methodstatic CategoryKeyReference
of
(CategoryKeyReference template) factory method to create a shallow copy CategoryKeyReferencestatic com.fasterxml.jackson.core.type.TypeReference<CategoryKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCategoryKeyReference
(Function<CategoryKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
CATEGORY
discriminator value for CategoryKeyReference- See Also:
-
-
Method Details
-
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
-
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
-