Class InventoryEntrySetSupplyChannelActionBuilder
java.lang.Object
com.commercetools.api.models.inventory.InventoryEntrySetSupplyChannelActionBuilder
- All Implemented Interfaces:
Builder<InventoryEntrySetSupplyChannelAction>
public class InventoryEntrySetSupplyChannelActionBuilder
extends Object
implements Builder<InventoryEntrySetSupplyChannelAction>
InventoryEntrySetSupplyChannelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InventoryEntrySetSupplyChannelAction inventoryEntrySetSupplyChannelAction = InventoryEntrySetSupplyChannelAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InventoryEntrySetSupplyChannelAction with checking for non-null required valuesbuilds InventoryEntrySetSupplyChannelAction without checking for non-null required valuesValue to set.of()
factory method for an instance of InventoryEntrySetSupplyChannelActionBuilderof
(InventoryEntrySetSupplyChannelAction template) create builder for InventoryEntrySetSupplyChannelAction instancesupplyChannel
(ChannelResourceIdentifier supplyChannel) Value to set.Value to set.Value to set.
-
Constructor Details
-
InventoryEntrySetSupplyChannelActionBuilder
public InventoryEntrySetSupplyChannelActionBuilder()
-
-
Method Details
-
supplyChannel
public InventoryEntrySetSupplyChannelActionBuilder supplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifierBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public InventoryEntrySetSupplyChannelActionBuilder withSupplyChannel(Function<ChannelResourceIdentifierBuilder, ChannelResourceIdentifier> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
public InventoryEntrySetSupplyChannelActionBuilder supplyChannel(@Nullable ChannelResourceIdentifier supplyChannel) Value to set. If empty, any existing value will be removed.
- Parameters:
supplyChannel
- value to be set- Returns:
- Builder
-
getSupplyChannel
Value to set. If empty, any existing value will be removed.
- Returns:
- supplyChannel
-
build
builds InventoryEntrySetSupplyChannelAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<InventoryEntrySetSupplyChannelAction>
- Returns:
- InventoryEntrySetSupplyChannelAction
-
buildUnchecked
builds InventoryEntrySetSupplyChannelAction without checking for non-null required values- Returns:
- InventoryEntrySetSupplyChannelAction
-
of
factory method for an instance of InventoryEntrySetSupplyChannelActionBuilder- Returns:
- builder
-
of
public static InventoryEntrySetSupplyChannelActionBuilder of(InventoryEntrySetSupplyChannelAction template) create builder for InventoryEntrySetSupplyChannelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-