public final class CustomObjectSyncOptionsBuilder extends BaseSyncOptionsBuilder<CustomObjectSyncOptionsBuilder,CustomObjectSyncOptions,io.sphere.sdk.customobjects.CustomObject<com.fasterxml.jackson.databind.JsonNode>,io.sphere.sdk.customobjects.CustomObjectDraft<com.fasterxml.jackson.databind.JsonNode>,io.sphere.sdk.customobjects.CustomObject<com.fasterxml.jackson.databind.JsonNode>>
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_SIZE_DEFAULT |
batchSize, beforeCreateCallback, beforeUpdateCallback, cacheSize, ctpClient, errorCallback, warningCallback
Modifier and Type | Method and Description |
---|---|
CustomObjectSyncOptions |
build()
Creates new instance of
CustomObjectSyncOptions enriched with all attributes provided
to this builder. |
protected CustomObjectSyncOptionsBuilder |
getThis()
Returns an instance of this class to be used in the superclass's generic methods.
|
static CustomObjectSyncOptionsBuilder |
of(io.sphere.sdk.client.SphereClient ctpClient)
Creates a new instance of
CustomObjectSyncOptionsBuilder 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 CustomObjectSyncOptionsBuilder of(@Nonnull io.sphere.sdk.client.SphereClient ctpClient)
CustomObjectSyncOptionsBuilder
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.CustomObjectSyncOptionsBuilder
public CustomObjectSyncOptions build()
CustomObjectSyncOptions
enriched with all attributes provided
to this
builder.build
in class BaseSyncOptionsBuilder<CustomObjectSyncOptionsBuilder,CustomObjectSyncOptions,io.sphere.sdk.customobjects.CustomObject<com.fasterxml.jackson.databind.JsonNode>,io.sphere.sdk.customobjects.CustomObjectDraft<com.fasterxml.jackson.databind.JsonNode>,io.sphere.sdk.customobjects.CustomObject<com.fasterxml.jackson.databind.JsonNode>>
CustomObjectSyncOptions
protected CustomObjectSyncOptionsBuilder getThis()
getThis
in class BaseSyncOptionsBuilder<CustomObjectSyncOptionsBuilder,CustomObjectSyncOptions,io.sphere.sdk.customobjects.CustomObject<com.fasterxml.jackson.databind.JsonNode>,io.sphere.sdk.customobjects.CustomObjectDraft<com.fasterxml.jackson.databind.JsonNode>,io.sphere.sdk.customobjects.CustomObject<com.fasterxml.jackson.databind.JsonNode>>