@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.inventory.InventoryEntryDraft") public final class InventoryEntryDraftBuilder extends Base implements Builder<InventoryEntryDraftDsl>
InventoryEntryDraft.| Modifier and Type | Method and Description |
|---|---|
InventoryEntryDraftDsl |
build()
Creates a new instance of
InventoryEntryDraftDsl with the values of this builder. |
InventoryEntryDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
InventoryEntryDraftBuilder |
expectedDelivery(ZonedDateTime expectedDelivery)
Sets the
expectedDelivery property of this builder. |
CustomFieldsDraft |
getCustom() |
ZonedDateTime |
getExpectedDelivery() |
Long |
getQuantityOnStock() |
Integer |
getRestockableInDays() |
String |
getSku() |
ResourceIdentifier<Channel> |
getSupplyChannel() |
static InventoryEntryDraftBuilder |
of(InventoryEntry template)
Creates a new object initialized with the fields of the template parameter.
|
static InventoryEntryDraftBuilder |
of(InventoryEntryDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static InventoryEntryDraftBuilder |
of(String sku,
Long quantityOnStock)
Creates a new object initialized with the given values.
|
static InventoryEntryDraftBuilder |
of(String sku,
Long quantityOnStock,
ZonedDateTime expectedDelivery)
Creates a new object initialized with the given values.
|
static InventoryEntryDraftBuilder |
of(String sku,
Long quantityOnStock,
ZonedDateTime expectedDelivery,
Integer restockableInDays,
ResourceIdentifier<Channel> supplyChannel)
Creates a new object initialized with the given values.
|
InventoryEntryDraftBuilder |
quantityOnStock(Long quantityOnStock)
Sets the
quantityOnStock property of this builder. |
InventoryEntryDraftBuilder |
restockableInDays(Integer restockableInDays)
Sets the
restockableInDays property of this builder. |
InventoryEntryDraftBuilder |
sku(String sku)
Sets the
sku property of this builder. |
InventoryEntryDraftBuilder |
supplyChannel(ResourceIdentifier<Channel> supplyChannel)
Sets the
supplyChannel property of this builder. |
public InventoryEntryDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom property of this builder.custom - the value for InventoryEntryDraft.getCustom()public InventoryEntryDraftBuilder expectedDelivery(@Nullable ZonedDateTime expectedDelivery)
expectedDelivery property of this builder.expectedDelivery - the value for InventoryEntryDraft.getExpectedDelivery()public InventoryEntryDraftBuilder quantityOnStock(Long quantityOnStock)
quantityOnStock property of this builder.quantityOnStock - the value for InventoryEntryDraft.getQuantityOnStock()public InventoryEntryDraftBuilder restockableInDays(@Nullable Integer restockableInDays)
restockableInDays property of this builder.restockableInDays - the value for InventoryEntryDraft.getRestockableInDays()public InventoryEntryDraftBuilder sku(String sku)
sku property of this builder.sku - the value for InventoryEntryDraft.getSku()public InventoryEntryDraftBuilder supplyChannel(@Nullable ResourceIdentifier<Channel> supplyChannel)
supplyChannel property of this builder.supplyChannel - the value for InventoryEntryDraft.getSupplyChannel()@Nullable public CustomFieldsDraft getCustom()
@Nullable public ZonedDateTime getExpectedDelivery()
public Long getQuantityOnStock()
public String getSku()
@Nullable public ResourceIdentifier<Channel> getSupplyChannel()
public InventoryEntryDraftDsl build()
InventoryEntryDraftDsl with the values of this builder.build in interface Builder<InventoryEntryDraftDsl>public static InventoryEntryDraftBuilder of(String sku, Long quantityOnStock)
sku - initial value for the InventoryEntryDraft.getSku() propertyquantityOnStock - initial value for the InventoryEntryDraft.getQuantityOnStock() propertypublic static InventoryEntryDraftBuilder of(String sku, Long quantityOnStock, @Nullable ZonedDateTime expectedDelivery)
sku - initial value for the InventoryEntryDraft.getSku() propertyquantityOnStock - initial value for the InventoryEntryDraft.getQuantityOnStock() propertyexpectedDelivery - initial value for the InventoryEntryDraft.getExpectedDelivery() propertypublic static InventoryEntryDraftBuilder of(String sku, Long quantityOnStock, @Nullable ZonedDateTime expectedDelivery, @Nullable Integer restockableInDays, @Nullable ResourceIdentifier<Channel> supplyChannel)
sku - initial value for the InventoryEntryDraft.getSku() propertyquantityOnStock - initial value for the InventoryEntryDraft.getQuantityOnStock() propertyexpectedDelivery - initial value for the InventoryEntryDraft.getExpectedDelivery() propertyrestockableInDays - initial value for the InventoryEntryDraft.getRestockableInDays() propertysupplyChannel - initial value for the InventoryEntryDraft.getSupplyChannel() propertypublic static InventoryEntryDraftBuilder of(InventoryEntryDraft template)
template - the templatepublic static InventoryEntryDraftBuilder of(InventoryEntry template)
template - the template