Class ChannelReferenceBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelReferenceBuilder
- All Implemented Interfaces:
Builder<ChannelReference>
ChannelReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelReference channelReference = ChannelReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChannelReference with checking for non-null required valuesbuilds ChannelReference without checking for non-null required valuesgetId()
Unique identifier of the referenced Channel.getObj()
Contains the representation of the expanded Channel.Unique identifier of the referenced Channel.Contains the representation of the expanded Channel.obj
(Function<ChannelBuilder, ChannelBuilder> builder) Contains the representation of the expanded Channel.static ChannelReferenceBuilder
of()
factory method for an instance of ChannelReferenceBuilderstatic ChannelReferenceBuilder
of
(ChannelReference template) create builder for ChannelReference instancewithObj
(Function<ChannelBuilder, Channel> builder) Contains the representation of the expanded Channel.
-
Constructor Details
-
ChannelReferenceBuilder
public ChannelReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced Channel.
- Parameters:
id
- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded Channel. Only present in responses to requests with Reference Expansion for Channels.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded Channel. Only present in responses to requests with Reference Expansion for Channels.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded Channel. Only present in responses to requests with Reference Expansion for Channels.
- Parameters:
obj
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Channel.
- Returns:
- id
-
getObj
Contains the representation of the expanded Channel. Only present in responses to requests with Reference Expansion for Channels.
- Returns:
- obj
-
build
builds ChannelReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChannelReference>
- Returns:
- ChannelReference
-
buildUnchecked
builds ChannelReference without checking for non-null required values- Returns:
- ChannelReference
-
of
factory method for an instance of ChannelReferenceBuilder- Returns:
- builder
-
of
create builder for ChannelReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-