public final class ProductSyncOptionsBuilder extends BaseSyncOptionsBuilder<ProductSyncOptionsBuilder,ProductSyncOptions,io.sphere.sdk.products.Product,io.sphere.sdk.products.ProductDraft>
| Modifier and Type | Field and Description |
|---|---|
static int |
BATCH_SIZE_DEFAULT |
allowUuid, batchSize, beforeCreateCallback, beforeUpdateCallback, ctpClient, errorCallback, warningCallback| Modifier and Type | Method and Description |
|---|---|
ProductSyncOptions |
build()
Creates new instance of
S which extends BaseSyncOptions enriched with all attributes provided to
this builder. |
ProductSyncOptionsBuilder |
ensurePriceChannels(boolean ensurePriceChannels)
Set option that indicates whether sync process should create price channel of given key when it doesn't exists
in a target project yet.
|
protected ProductSyncOptionsBuilder |
getThis()
|
static ProductSyncOptionsBuilder |
of(io.sphere.sdk.client.SphereClient ctpClient) |
ProductSyncOptionsBuilder |
syncFilter(SyncFilter syncFilter)
Set option that defines
SyncFilter for the sync, which defines either a blacklist or a whitelist for
filtering certain update action groups. |
allowUuidKeys, batchSize, beforeCreateCallback, beforeUpdateCallback, errorCallback, warningCallbackpublic static final int BATCH_SIZE_DEFAULT
public static ProductSyncOptionsBuilder of(@Nonnull io.sphere.sdk.client.SphereClient ctpClient)
@Nonnull public ProductSyncOptionsBuilder syncFilter(@Nonnull SyncFilter syncFilter)
SyncFilter for the sync, which defines either a blacklist or a whitelist for
filtering certain update action groups.
The action groups can be a list of any of the values of the enum ActionGroup, namely:
syncFilter - defines either a blacklist or a whitelist for filtering certain update action groups.this instance of ProductSyncOptionsBuilder@Nonnull public ProductSyncOptionsBuilder ensurePriceChannels(boolean ensurePriceChannels)
true sync process would try to create new price channel of given key,
otherwise sync process would log error and fail to process draft with given price channel key.
This property is ENSURE_CHANNELS_DEFAULT by default.
ensurePriceChannels - boolean that indicates whether sync process should create price channel of given key
when it doesn't exists in a target project yetthis instance of ProductSyncOptionsBuilder@Nonnull public ProductSyncOptions build()
BaseSyncOptionsBuilderS which extends BaseSyncOptions enriched with all attributes provided to
this builder.build in class BaseSyncOptionsBuilder<ProductSyncOptionsBuilder,ProductSyncOptions,io.sphere.sdk.products.Product,io.sphere.sdk.products.ProductDraft>BaseSyncOptionsprotected ProductSyncOptionsBuilder getThis()
BaseSyncOptionsBuilderthis 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<ProductSyncOptionsBuilder,ProductSyncOptions,io.sphere.sdk.products.Product,io.sphere.sdk.products.ProductDraft>