Interface InventoryEntrySetSupplyChannelAction
- All Superinterfaces:
InventoryEntryUpdateAction
,ResourceUpdateAction<InventoryEntryUpdateAction>
If an entry with the same sku
and supplyChannel
already exists, an DuplicateField error is returned.
Example to create an instance using the builder pattern
InventoryEntrySetSupplyChannelAction inventoryEntrySetSupplyChannelAction = InventoryEntrySetSupplyChannelAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InventoryEntrySetSupplyChannelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InventoryEntrySetSupplyChannelActionbuilder
(InventoryEntrySetSupplyChannelAction template) create builder for InventoryEntrySetSupplyChannelAction instancedeepCopy
(InventoryEntrySetSupplyChannelAction template) factory method to create a deep copy of InventoryEntrySetSupplyChannelAction@Valid ChannelResourceIdentifier
Value to set.of()
factory methodof
(InventoryEntrySetSupplyChannelAction template) factory method to create a shallow copy InventoryEntrySetSupplyChannelActionvoid
setSupplyChannel
(ChannelResourceIdentifier supplyChannel) Value to set.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntrySetSupplyChannelAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.inventory.InventoryEntryUpdateAction
getAction, withInventoryEntryUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_SUPPLY_CHANNEL
discriminator value for InventoryEntrySetSupplyChannelAction- See Also:
-
-
Method Details
-
getSupplyChannel
Value to set. If empty, any existing value will be removed.
- Returns:
- supplyChannel
-
setSupplyChannel
Value to set. If empty, any existing value will be removed.
- Parameters:
supplyChannel
- value to be set
-
of
factory method- Returns:
- instance of InventoryEntrySetSupplyChannelAction
-
of
factory method to create a shallow copy InventoryEntrySetSupplyChannelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static InventoryEntrySetSupplyChannelAction deepCopy(@Nullable InventoryEntrySetSupplyChannelAction template) factory method to create a deep copy of InventoryEntrySetSupplyChannelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntrySetSupplyChannelAction- Returns:
- builder
-
builder
static InventoryEntrySetSupplyChannelActionBuilder builder(InventoryEntrySetSupplyChannelAction template) create builder for InventoryEntrySetSupplyChannelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntrySetSupplyChannelAction
default <T> T withInventoryEntrySetSupplyChannelAction(Function<InventoryEntrySetSupplyChannelAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<InventoryEntrySetSupplyChannelAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-