Class ChannelKeyReferenceBuilder
java.lang.Object
com.commercetools.importapi.models.common.ChannelKeyReferenceBuilder
- All Implemented Interfaces:
Builder<ChannelKeyReference>
ChannelKeyReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChannelKeyReference channelKeyReference = ChannelKeyReference.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChannelKeyReference with checking for non-null required valuesbuilds ChannelKeyReference without checking for non-null required valuesgetKey()
value of key}set the value to the keystatic ChannelKeyReferenceBuilder
of()
factory method for an instance of ChannelKeyReferenceBuilderstatic ChannelKeyReferenceBuilder
of
(ChannelKeyReference template) create builder for ChannelKeyReference instance
-
Constructor Details
-
ChannelKeyReferenceBuilder
public ChannelKeyReferenceBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
build
builds ChannelKeyReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChannelKeyReference>
- Returns:
- ChannelKeyReference
-
buildUnchecked
builds ChannelKeyReference without checking for non-null required values- Returns:
- ChannelKeyReference
-
of
factory method for an instance of ChannelKeyReferenceBuilder- Returns:
- builder
-
of
create builder for ChannelKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-