public final class InventorySyncOptionsBuilder extends BaseSyncOptionsBuilder<InventorySyncOptionsBuilder,InventorySyncOptions,io.sphere.sdk.inventory.InventoryEntry,io.sphere.sdk.inventory.InventoryEntryDraft>
InventorySyncOptions.allowUuid, batchSize, beforeCreateCallback, beforeUpdateCallback, ctpClient, errorCallback, warningCallback| Modifier and Type | Method and Description |
|---|---|
InventorySyncOptions |
build()
Returns new instance of
InventorySyncOptions, enriched with all attributes provided to this
builder. |
InventorySyncOptionsBuilder |
ensureChannels(boolean ensureChannels)
Set option that indicates whether sync process should create supply channel of given key when it doesn't exists
in a target project yet.
|
protected InventorySyncOptionsBuilder |
getThis()
Returns
this instance of InventorySyncOptionsBuilder. |
static InventorySyncOptionsBuilder |
of(io.sphere.sdk.client.SphereClient ctpClient)
Creates a new instance of
InventorySyncOptionsBuilder given a SphereClient responsible for
interaction with the target CTP project, with the dafult batch size (BATCH_SIZE_DEFAULT = 150). |
allowUuidKeys, batchSize, beforeCreateCallback, beforeUpdateCallback, errorCallback, warningCallbackpublic static InventorySyncOptionsBuilder of(@Nonnull io.sphere.sdk.client.SphereClient ctpClient)
InventorySyncOptionsBuilder given a SphereClient responsible for
interaction with the target CTP project, with the dafult batch size (BATCH_SIZE_DEFAULT = 150).ctpClient - SphereClient responsible for interaction with the target CTP project.InventorySyncOptionsBuilderpublic InventorySyncOptionsBuilder ensureChannels(boolean ensureChannels)
true sync process would try to create new supply channel of given key,
otherwise sync process would log error and fail to process draft with given supply channel key.
This property is ENSURE_CHANNELS_DEFAULT by default.
ensureChannels - boolean that indicates whether sync process should create supply channel of given key when
it doesn't exists in a target project yetthis instance of InventorySyncOptionsBuilderpublic InventorySyncOptions build()
InventorySyncOptions, enriched with all attributes provided to this
builder.build in class BaseSyncOptionsBuilder<InventorySyncOptionsBuilder,InventorySyncOptions,io.sphere.sdk.inventory.InventoryEntry,io.sphere.sdk.inventory.InventoryEntryDraft>InventorySyncOptionsprotected InventorySyncOptionsBuilder getThis()
this instance of InventorySyncOptionsBuilder.
Inherited doc:
Returns this instance of T, which extends BaseSyncOptionsBuilder. The purpose of this
method is to make sure that this is an instance of a class which extends BaseSyncOptionsBuilder
in order to be used in the generic methods of the class. Otherwise, without this method, the methods above would
need to cast this to T which could lead to a runtime error of the class was extended in a wrong way.
getThis in class BaseSyncOptionsBuilder<InventorySyncOptionsBuilder,InventorySyncOptions,io.sphere.sdk.inventory.InventoryEntry,io.sphere.sdk.inventory.InventoryEntryDraft>