Class StoreSetDistributionChannelsActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreSetDistributionChannelsActionBuilder
- All Implemented Interfaces:
Builder<StoreSetDistributionChannelsAction>
public class StoreSetDistributionChannelsActionBuilder
extends Object
implements Builder<StoreSetDistributionChannelsAction>
StoreSetDistributionChannelsActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreSetDistributionChannelsAction storeSetDistributionChannelsAction = StoreSetDistributionChannelsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDistributionChannels
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to set.build()
builds StoreSetDistributionChannelsAction with checking for non-null required valuesbuilds StoreSetDistributionChannelsAction without checking for non-null required valuesdistributionChannels
(ChannelResourceIdentifier... distributionChannels) Value to set.distributionChannels
(List<ChannelResourceIdentifier> distributionChannels) Value to set.Value to set.of()
factory method for an instance of StoreSetDistributionChannelsActionBuilderof
(StoreSetDistributionChannelsAction template) create builder for StoreSetDistributionChannelsAction instanceplusDistributionChannels
(ChannelResourceIdentifier... distributionChannels) Value to set.plusDistributionChannels
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to set.setDistributionChannels
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to set.withDistributionChannels
(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to set.
-
Constructor Details
-
StoreSetDistributionChannelsActionBuilder
public StoreSetDistributionChannelsActionBuilder()
-
-
Method Details
-
distributionChannels
public StoreSetDistributionChannelsActionBuilder distributionChannels(@Nullable ChannelResourceIdentifier... distributionChannels) Value to set. If not defined, the Store's
distributionChannels
are unset.- Parameters:
distributionChannels
- value to be set- Returns:
- Builder
-
distributionChannels
public StoreSetDistributionChannelsActionBuilder distributionChannels(@Nullable List<ChannelResourceIdentifier> distributionChannels) Value to set. If not defined, the Store's
distributionChannels
are unset.- Parameters:
distributionChannels
- value to be set- Returns:
- Builder
-
plusDistributionChannels
public StoreSetDistributionChannelsActionBuilder plusDistributionChannels(@Nullable ChannelResourceIdentifier... distributionChannels) Value to set. If not defined, the Store's
distributionChannels
are unset.- Parameters:
distributionChannels
- value to be set- Returns:
- Builder
-
plusDistributionChannels
public StoreSetDistributionChannelsActionBuilder plusDistributionChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to set. If not defined, the Store's
distributionChannels
are unset.- Parameters:
builder
- function to build the distributionChannels value- Returns:
- Builder
-
withDistributionChannels
public StoreSetDistributionChannelsActionBuilder withDistributionChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to set. If not defined, the Store's
distributionChannels
are unset.- Parameters:
builder
- function to build the distributionChannels value- Returns:
- Builder
-
addDistributionChannels
public StoreSetDistributionChannelsActionBuilder addDistributionChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to set. If not defined, the Store's
distributionChannels
are unset.- Parameters:
builder
- function to build the distributionChannels value- Returns:
- Builder
-
setDistributionChannels
public StoreSetDistributionChannelsActionBuilder setDistributionChannels(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to set. If not defined, the Store's
distributionChannels
are unset.- Parameters:
builder
- function to build the distributionChannels value- Returns:
- Builder
-
getDistributionChannels
Value to set. If not defined, the Store's
distributionChannels
are unset.- Returns:
- distributionChannels
-
build
builds StoreSetDistributionChannelsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreSetDistributionChannelsAction>
- Returns:
- StoreSetDistributionChannelsAction
-
buildUnchecked
builds StoreSetDistributionChannelsAction without checking for non-null required values- Returns:
- StoreSetDistributionChannelsAction
-
of
factory method for an instance of StoreSetDistributionChannelsActionBuilder- Returns:
- builder
-
of
public static StoreSetDistributionChannelsActionBuilder of(StoreSetDistributionChannelsAction template) create builder for StoreSetDistributionChannelsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-