Class CustomObjectSyncOptionsBuilder
- java.lang.Object
-
- com.commercetools.sync.commons.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>>
-
- com.commercetools.sync.customobjects.CustomObjectSyncOptionsBuilder
-
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>>
-
-
Field Summary
Fields Modifier and Type Field Description static intBATCH_SIZE_DEFAULT-
Fields inherited from class com.commercetools.sync.commons.BaseSyncOptionsBuilder
batchSize, beforeCreateCallback, beforeUpdateCallback, cacheSize, ctpClient, errorCallback, warningCallback
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomObjectSyncOptionsbuild()Creates new instance ofCustomObjectSyncOptionsenriched with all attributes provided tothisbuilder.protected CustomObjectSyncOptionsBuildergetThis()Returns an instance of this class to be used in the superclass's generic methods.static CustomObjectSyncOptionsBuilderof(io.sphere.sdk.client.SphereClient ctpClient)Creates a new instance ofCustomObjectSyncOptionsBuildergiven aSphereClientresponsible for interaction with the target CTP project, with the default batch size (BATCH_SIZE_DEFAULT= 50).-
Methods inherited from class com.commercetools.sync.commons.BaseSyncOptionsBuilder
batchSize, beforeCreateCallback, beforeUpdateCallback, cacheSize, errorCallback, warningCallback
-
-
-
-
Field Detail
-
BATCH_SIZE_DEFAULT
public static final int BATCH_SIZE_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
of
public static CustomObjectSyncOptionsBuilder of(@Nonnull io.sphere.sdk.client.SphereClient ctpClient)
Creates a new instance ofCustomObjectSyncOptionsBuildergiven aSphereClientresponsible for interaction with the target CTP project, with the default batch size (BATCH_SIZE_DEFAULT= 50).- Parameters:
ctpClient- instance of theSphereClientresponsible for interaction with the target CTP project.- Returns:
- new instance of
CustomObjectSyncOptionsBuilder
-
build
public CustomObjectSyncOptions build()
Creates new instance ofCustomObjectSyncOptionsenriched with all attributes provided tothisbuilder.- Specified by:
buildin classBaseSyncOptionsBuilder<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>>- Returns:
- new instance of
CustomObjectSyncOptions
-
getThis
protected CustomObjectSyncOptionsBuilder getThis()
Returns an instance of this class to be used in the superclass's generic methods. Please see the JavaDoc in the overridden method for further details.- Specified by:
getThisin classBaseSyncOptionsBuilder<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>>- Returns:
- an instance of this class.
-
-