public class SourcingLocationBuilder extends Object implements Builder<SourcingLocation>
| Modifier and Type | Field and Description |
|---|---|
static Double |
DEFAULT_DISTANCE |
static Integer |
DEFAULT_INITIAL_ID |
static Integer |
DEFAULT_PRIORITY |
static String |
DEFAULT_SKU |
static Long |
DEFAULT_SKU_QUANTITY |
| Constructor and Description |
|---|
SourcingLocationBuilder() |
public static final Double DEFAULT_DISTANCE
public static final Integer DEFAULT_PRIORITY
public static final Integer DEFAULT_INITIAL_ID
public static final String DEFAULT_SKU
public static final Long DEFAULT_SKU_QUANTITY
public static SourcingLocationBuilder aSourcingLocation()
public SourcingLocation build()
Builderbuild in interface Builder<SourcingLocation>public SourcingLocationBuilder withWarehouse(WarehouseModel warehouse)
public SourcingLocationBuilder withDistance(Double distance)
public SourcingLocationBuilder withContext(SourcingContext context)
public SourcingLocationBuilder withWarehouseCode(String id)
WarehouseModel from the given idid - - the String id of the warehouse to be createdSourcingLocationBuilderpublic SourcingLocationBuilder withAvailability(Map<ProductModel,Long> availability)
public SourcingLocationBuilder withPriority(Integer priority)
public SourcingLocationBuilder withDefaultAvailabilityQuantity(Long quantity)
quantity - - the quantity of the the productpublic SourcingLocationBuilder withCustomAvailabilitySkuQuantity(String SKUId, Long quantity)
ProductModel of the specified SKU and quantity to the location to be builtSKUId - - SKU ID to be used as the product codequantity - - the quantity of the the productpublic SourcingLocationBuilder withCustomAvailabilityProductQuantity(ProductModel productModel, Long quantity)
ProductModel of the specified quantity to the location to be builtproductModel - quantity - Copyright © 2017 SAP SE. All Rights Reserved.