Interface ChannelReference
- All Superinterfaces:
ChannelReferenceMixin
,Identifiable<Channel>
,IdentifiableObjHolder<Channel>
,Reference
,ReferenceMixin
public interface ChannelReference
extends Reference, Identifiable<Channel>, ChannelReferenceMixin, IdentifiableObjHolder<Channel>
Reference to a Channel.
Example to create an instance using the builder pattern
ChannelReference channelReference = ChannelReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelReferenceBuilder
builder()
builder factory method for ChannelReferencestatic ChannelReferenceBuilder
builder
(ChannelReference template) create builder for ChannelReference instancestatic ChannelReference
deepCopy
(ChannelReference template) factory method to create a deep copy of ChannelReference@NotNull String
getId()
Unique identifier of the referenced Channel.@Valid Channel
getObj()
Contains the representation of the expanded Channel.static ChannelReference
of()
factory methodstatic ChannelReference
of
(ChannelReference template) factory method to create a shallow copy ChannelReferencevoid
Unique identifier of the referenced Channel.void
Contains the representation of the expanded Channel.static com.fasterxml.jackson.core.type.TypeReference<ChannelReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withChannelReference
(Function<ChannelReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.channel.ChannelReferenceMixin
toResourceIdentifier
Methods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
-
Field Details
-
CHANNEL
discriminator value for ChannelReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Channel. Only present in responses to requests with Reference Expansion for Channels.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<Channel>
- Returns:
- obj
-
getId
Unique identifier of the referenced Channel.
- Specified by:
getId
in interfaceChannelReferenceMixin
- Specified by:
getId
in interfaceIdentifiable<Channel>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setObj
Contains the representation of the expanded Channel. Only present in responses to requests with Reference Expansion for Channels.
- Parameters:
obj
- value to be set
-
setId
Unique identifier of the referenced Channel.
-
of
factory method- Returns:
- instance of ChannelReference
-
of
factory method to create a shallow copy ChannelReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ChannelReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ChannelReference- Returns:
- builder
-
builder
create builder for ChannelReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withChannelReference
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
-