Class CategorySyncOptionsBuilder
- java.lang.Object
-
- com.commercetools.sync.commons.BaseSyncOptionsBuilder<CategorySyncOptionsBuilder,CategorySyncOptions,io.sphere.sdk.categories.Category,io.sphere.sdk.categories.CategoryDraft,io.sphere.sdk.categories.Category>
-
- com.commercetools.sync.categories.CategorySyncOptionsBuilder
-
public final class CategorySyncOptionsBuilder extends BaseSyncOptionsBuilder<CategorySyncOptionsBuilder,CategorySyncOptions,io.sphere.sdk.categories.Category,io.sphere.sdk.categories.CategoryDraft,io.sphere.sdk.categories.Category>
-
-
Field Summary
Fields Modifier and Type Field Description static int
BATCH_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 CategorySyncOptions
build()
Creates a new instance ofCategorySyncOptions
enriched with all attributes provided tothis
builder.protected CategorySyncOptionsBuilder
getThis()
Returns an instance of this class to be used in the superclass's generic methods.static CategorySyncOptionsBuilder
of(io.sphere.sdk.client.SphereClient ctpClient)
Creates a new instance ofCategorySyncOptionsBuilder
given aSphereClient
responsible 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 CategorySyncOptionsBuilder of(@Nonnull io.sphere.sdk.client.SphereClient ctpClient)
Creates a new instance ofCategorySyncOptionsBuilder
given aSphereClient
responsible for interaction with the target CTP project, with the default batch size (BATCH_SIZE_DEFAULT
= 50).- Parameters:
ctpClient
- instance of theSphereClient
responsible for interaction with the target CTP project.- Returns:
- new instance of
CategorySyncOptionsBuilder
-
build
public CategorySyncOptions build()
Creates a new instance ofCategorySyncOptions
enriched with all attributes provided tothis
builder.- Specified by:
build
in classBaseSyncOptionsBuilder<CategorySyncOptionsBuilder,CategorySyncOptions,io.sphere.sdk.categories.Category,io.sphere.sdk.categories.CategoryDraft,io.sphere.sdk.categories.Category>
- Returns:
- new instance of
CategorySyncOptions
-
getThis
protected CategorySyncOptionsBuilder 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:
getThis
in classBaseSyncOptionsBuilder<CategorySyncOptionsBuilder,CategorySyncOptions,io.sphere.sdk.categories.Category,io.sphere.sdk.categories.CategoryDraft,io.sphere.sdk.categories.Category>
- Returns:
- an instance of this class.
-
-