Class StoreRemoveSupplyChannelActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreRemoveSupplyChannelActionBuilder
- All Implemented Interfaces:
Builder<StoreRemoveSupplyChannelAction>
public class StoreRemoveSupplyChannelActionBuilder
extends Object
implements Builder<StoreRemoveSupplyChannelAction>
StoreRemoveSupplyChannelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreRemoveSupplyChannelAction storeRemoveSupplyChannelAction = StoreRemoveSupplyChannelAction.builder()
.supplyChannel(supplyChannelBuilder -> supplyChannelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StoreRemoveSupplyChannelAction with checking for non-null required valuesbuilds StoreRemoveSupplyChannelAction without checking for non-null required valuesValue to remove.of()
factory method for an instance of StoreRemoveSupplyChannelActionBuilderof
(StoreRemoveSupplyChannelAction template) create builder for StoreRemoveSupplyChannelAction instancesupplyChannel
(ChannelResourceIdentifier supplyChannel) Value to remove.Value to remove.Value to remove.
-
Constructor Details
-
StoreRemoveSupplyChannelActionBuilder
public StoreRemoveSupplyChannelActionBuilder()
-
-
Method Details
-
supplyChannel
public StoreRemoveSupplyChannelActionBuilder supplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to remove. ResourceIdentifier of a Channel with the
InventorySupply
ChannelRoleEnum.- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public StoreRemoveSupplyChannelActionBuilder withSupplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to remove. ResourceIdentifier of a Channel with the
InventorySupply
ChannelRoleEnum.- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
Value to remove. ResourceIdentifier of a Channel with the
InventorySupply
ChannelRoleEnum.- Parameters:
supplyChannel
- value to be set- Returns:
- Builder
-
getSupplyChannel
Value to remove. ResourceIdentifier of a Channel with the
InventorySupply
ChannelRoleEnum.- Returns:
- supplyChannel
-
build
builds StoreRemoveSupplyChannelAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreRemoveSupplyChannelAction>
- Returns:
- StoreRemoveSupplyChannelAction
-
buildUnchecked
builds StoreRemoveSupplyChannelAction without checking for non-null required values- Returns:
- StoreRemoveSupplyChannelAction
-
of
factory method for an instance of StoreRemoveSupplyChannelActionBuilder- Returns:
- builder
-
of
create builder for StoreRemoveSupplyChannelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-