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