Class StoreAddDistributionChannelActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreAddDistributionChannelActionBuilder
- All Implemented Interfaces:
Builder<StoreAddDistributionChannelAction>
public class StoreAddDistributionChannelActionBuilder
extends Object
implements Builder<StoreAddDistributionChannelAction>
StoreAddDistributionChannelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreAddDistributionChannelAction storeAddDistributionChannelAction = StoreAddDistributionChannelAction.builder()
.distributionChannel(distributionChannelBuilder -> distributionChannelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StoreAddDistributionChannelAction with checking for non-null required valuesbuilds StoreAddDistributionChannelAction without checking for non-null required valuesdistributionChannel
(ChannelResourceIdentifier distributionChannel) Value to append.distributionChannel
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to append.Value to append.of()
factory method for an instance of StoreAddDistributionChannelActionBuilderof
(StoreAddDistributionChannelAction template) create builder for StoreAddDistributionChannelAction instancewithDistributionChannel
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to append.
-
Constructor Details
-
StoreAddDistributionChannelActionBuilder
public StoreAddDistributionChannelActionBuilder()
-
-
Method Details
-
distributionChannel
public StoreAddDistributionChannelActionBuilder distributionChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to append.
- Parameters:
builder
- function to build the distributionChannel value- Returns:
- Builder
-
withDistributionChannel
public StoreAddDistributionChannelActionBuilder withDistributionChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to append.
- Parameters:
builder
- function to build the distributionChannel value- Returns:
- Builder
-
distributionChannel
public StoreAddDistributionChannelActionBuilder distributionChannel(ChannelResourceIdentifier distributionChannel) Value to append.
- Parameters:
distributionChannel
- value to be set- Returns:
- Builder
-
getDistributionChannel
Value to append.
- Returns:
- distributionChannel
-
build
builds StoreAddDistributionChannelAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreAddDistributionChannelAction>
- Returns:
- StoreAddDistributionChannelAction
-
buildUnchecked
builds StoreAddDistributionChannelAction without checking for non-null required values- Returns:
- StoreAddDistributionChannelAction
-
of
factory method for an instance of StoreAddDistributionChannelActionBuilder- Returns:
- builder
-
of
public static StoreAddDistributionChannelActionBuilder of(StoreAddDistributionChannelAction template) create builder for StoreAddDistributionChannelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-