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