Package com.commercetools.sync.types
Class TypeSyncOptionsBuilder
- java.lang.Object
-
- com.commercetools.sync.commons.BaseSyncOptionsBuilder<TypeSyncOptionsBuilder,TypeSyncOptions,com.commercetools.api.models.type.Type,com.commercetools.api.models.type.TypeDraft,com.commercetools.api.models.type.TypeUpdateAction>
-
- com.commercetools.sync.types.TypeSyncOptionsBuilder
-
public final class TypeSyncOptionsBuilder extends BaseSyncOptionsBuilder<TypeSyncOptionsBuilder,TypeSyncOptions,com.commercetools.api.models.type.Type,com.commercetools.api.models.type.TypeDraft,com.commercetools.api.models.type.TypeUpdateAction>
-
-
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 TypeSyncOptions
build()
Creates new instance ofTypeSyncOptions
enriched with all fields provided tothis
builder.protected TypeSyncOptionsBuilder
getThis()
Returns an instance of this class to be used in the superclass's generic methods.static TypeSyncOptionsBuilder
of(com.commercetools.api.client.ProjectApiRoot ctpClient)
Creates a new instance ofTypeSyncOptionsBuilder
given aProjectApiRoot
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 TypeSyncOptionsBuilder of(@Nonnull com.commercetools.api.client.ProjectApiRoot ctpClient)
Creates a new instance ofTypeSyncOptionsBuilder
given aProjectApiRoot
responsible for interaction with the target CTP project, with the default batch size (BATCH_SIZE_DEFAULT
= 50).- Parameters:
ctpClient
- instance of theProjectApiRoot
responsible for interaction with the target CTP project.- Returns:
- new instance of
TypeSyncOptionsBuilder
-
build
public TypeSyncOptions build()
Creates new instance ofTypeSyncOptions
enriched with all fields provided tothis
builder.- Specified by:
build
in classBaseSyncOptionsBuilder<TypeSyncOptionsBuilder,TypeSyncOptions,com.commercetools.api.models.type.Type,com.commercetools.api.models.type.TypeDraft,com.commercetools.api.models.type.TypeUpdateAction>
- Returns:
- new instance of
TypeSyncOptions
-
getThis
protected TypeSyncOptionsBuilder 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<TypeSyncOptionsBuilder,TypeSyncOptions,com.commercetools.api.models.type.Type,com.commercetools.api.models.type.TypeDraft,com.commercetools.api.models.type.TypeUpdateAction>
- Returns:
- an instance of this class.
-
-