public final class CartDiscountSyncOptionsBuilder extends BaseSyncOptionsBuilder<CartDiscountSyncOptionsBuilder,CartDiscountSyncOptions,io.sphere.sdk.cartdiscounts.CartDiscount,io.sphere.sdk.cartdiscounts.CartDiscountDraft,io.sphere.sdk.cartdiscounts.CartDiscount>
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_SIZE_DEFAULT |
batchSize, beforeCreateCallback, beforeUpdateCallback, cacheSize, ctpClient, errorCallback, warningCallback
Modifier and Type | Method and Description |
---|---|
CartDiscountSyncOptions |
build()
Creates new instance of
CartDiscountSyncOptions enriched with all attributes provided
to this builder. |
protected CartDiscountSyncOptionsBuilder |
getThis()
Returns an instance of this class to be used in the superclass's generic methods.
|
static CartDiscountSyncOptionsBuilder |
of(io.sphere.sdk.client.SphereClient ctpClient)
Creates a new instance of
CartDiscountSyncOptionsBuilder given a SphereClient
responsible for interaction with the target CTP project, with the default batch size (BATCH_SIZE_DEFAULT = 50). |
batchSize, beforeCreateCallback, beforeUpdateCallback, cacheSize, errorCallback, warningCallback
public static final int BATCH_SIZE_DEFAULT
public static CartDiscountSyncOptionsBuilder of(@Nonnull io.sphere.sdk.client.SphereClient ctpClient)
CartDiscountSyncOptionsBuilder
given a SphereClient
responsible for interaction with the target CTP project, with the default batch size (BATCH_SIZE_DEFAULT
= 50).ctpClient
- instance of the SphereClient
responsible for interaction with the
target CTP project.CartDiscountSyncOptionsBuilder
public CartDiscountSyncOptions build()
CartDiscountSyncOptions
enriched with all attributes provided
to this
builder.build
in class BaseSyncOptionsBuilder<CartDiscountSyncOptionsBuilder,CartDiscountSyncOptions,io.sphere.sdk.cartdiscounts.CartDiscount,io.sphere.sdk.cartdiscounts.CartDiscountDraft,io.sphere.sdk.cartdiscounts.CartDiscount>
CartDiscountSyncOptions
protected CartDiscountSyncOptionsBuilder getThis()
getThis
in class BaseSyncOptionsBuilder<CartDiscountSyncOptionsBuilder,CartDiscountSyncOptions,io.sphere.sdk.cartdiscounts.CartDiscount,io.sphere.sdk.cartdiscounts.CartDiscountDraft,io.sphere.sdk.cartdiscounts.CartDiscount>