public final class ProductSyncOptionsBuilder extends BaseSyncOptionsBuilder<ProductSyncOptionsBuilder,ProductSyncOptions,io.sphere.sdk.products.ProductProjection,io.sphere.sdk.products.ProductDraft,io.sphere.sdk.products.Product>
| Modifier and Type | Field and Description |
|---|---|
static int |
BATCH_SIZE_DEFAULT |
batchSize, beforeCreateCallback, beforeUpdateCallback, cacheSize, 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 a price channel of given key when
it doesn't exist 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. |
batchSize, beforeCreateCallback, beforeUpdateCallback, cacheSize, 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, the sync process would try to
create the new price channel of the given key, otherwise the sync process would log an error
and fail to process the draft with the 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 exist 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.ProductProjection,io.sphere.sdk.products.ProductDraft,io.sphere.sdk.products.Product>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.ProductProjection,io.sphere.sdk.products.ProductDraft,io.sphere.sdk.products.Product>