Class ChannelResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.channel.ChannelResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<ChannelResourceIdentifier>
public class ChannelResourceIdentifierBuilder
extends Object
implements Builder<ChannelResourceIdentifier>
ChannelResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelResourceIdentifier channelResourceIdentifier = ChannelResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChannelResourceIdentifier with checking for non-null required valuesbuilds ChannelResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced Channel.getKey()
User-defined unique identifier of the referenced Channel.Unique identifier of the referenced Channel.User-defined unique identifier of the referenced Channel.of()
factory method for an instance of ChannelResourceIdentifierBuilderof
(ChannelResourceIdentifier template) create builder for ChannelResourceIdentifier instance
-
Constructor Details
-
ChannelResourceIdentifierBuilder
public ChannelResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced Channel. Required if
key
is absent.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the referenced Channel. Required if
id
is absent.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Channel. Required if
key
is absent.- Returns:
- id
-
getKey
User-defined unique identifier of the referenced Channel. Required if
id
is absent.- Returns:
- key
-
build
builds ChannelResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChannelResourceIdentifier>
- Returns:
- ChannelResourceIdentifier
-
buildUnchecked
builds ChannelResourceIdentifier without checking for non-null required values- Returns:
- ChannelResourceIdentifier
-
of
factory method for an instance of ChannelResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for ChannelResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-