Interface TypeKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a Type.
Example to create an instance using the builder pattern
TypeKeyReference typeKeyReference = TypeKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeKeyReferenceBuilderbuilder()builder factory method for TypeKeyReferencestatic TypeKeyReferenceBuilderbuilder(TypeKeyReference template) create builder for TypeKeyReference instancecopyDeep()static TypeKeyReferencedeepCopy(TypeKeyReference template) factory method to create a deep copy of TypeKeyReference@NotNull StringgetKey()User-defined unique identifier of the referenced Type.static TypeKeyReferenceof()factory methodstatic TypeKeyReferenceof(TypeKeyReference template) factory method to create a shallow copy TypeKeyReferencevoidUser-defined unique identifier of the referenced Type.static com.fasterxml.jackson.core.type.TypeReference<TypeKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTypeKeyReference(Function<TypeKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
TYPE
discriminator value for TypeKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced Type.
- Specified by:
getKeyin interfaceKeyReference- Returns:
- key
-
setKey
User-defined unique identifier of the referenced Type.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
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
-
copyDeep
TypeKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
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
-