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