public final class ShoppingListSyncOptionsBuilder extends BaseSyncOptionsBuilder<ShoppingListSyncOptionsBuilder,ShoppingListSyncOptions,io.sphere.sdk.shoppinglists.ShoppingList,io.sphere.sdk.shoppinglists.ShoppingListDraft,io.sphere.sdk.shoppinglists.ShoppingList>
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_SIZE_DEFAULT |
batchSize, beforeCreateCallback, beforeUpdateCallback, cacheSize, ctpClient, errorCallback, warningCallback
Modifier and Type | Method and Description |
---|---|
ShoppingListSyncOptions |
build()
Creates new instance of
ShoppingListSyncOptions enriched with all fields provided to
this builder |
protected ShoppingListSyncOptionsBuilder |
getThis()
Returns an instance of this class to be used in the superclass's generic methods.
|
static ShoppingListSyncOptionsBuilder |
of(io.sphere.sdk.client.SphereClient ctpClient)
Creates a new instance of
ShoppingListSyncOptionsBuilder 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 ShoppingListSyncOptionsBuilder of(@Nonnull io.sphere.sdk.client.SphereClient ctpClient)
ShoppingListSyncOptionsBuilder
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.ShoppingListSyncOptionsBuilder
public ShoppingListSyncOptions build()
ShoppingListSyncOptions
enriched with all fields provided to
this
builderbuild
in class BaseSyncOptionsBuilder<ShoppingListSyncOptionsBuilder,ShoppingListSyncOptions,io.sphere.sdk.shoppinglists.ShoppingList,io.sphere.sdk.shoppinglists.ShoppingListDraft,io.sphere.sdk.shoppinglists.ShoppingList>
ShoppingListSyncOptions
protected ShoppingListSyncOptionsBuilder getThis()
getThis
in class BaseSyncOptionsBuilder<ShoppingListSyncOptionsBuilder,ShoppingListSyncOptions,io.sphere.sdk.shoppinglists.ShoppingList,io.sphere.sdk.shoppinglists.ShoppingListDraft,io.sphere.sdk.shoppinglists.ShoppingList>