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