Package com.commercetools.sync.states
Class StateSyncOptionsBuilder
- java.lang.Object
-
- com.commercetools.sync.commons.BaseSyncOptionsBuilder<StateSyncOptionsBuilder,StateSyncOptions,com.commercetools.api.models.state.State,com.commercetools.api.models.state.StateDraft,com.commercetools.api.models.state.StateUpdateAction>
-
- com.commercetools.sync.states.StateSyncOptionsBuilder
-
public final class StateSyncOptionsBuilder extends BaseSyncOptionsBuilder<StateSyncOptionsBuilder,StateSyncOptions,com.commercetools.api.models.state.State,com.commercetools.api.models.state.StateDraft,com.commercetools.api.models.state.StateUpdateAction>
-
-
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 StateSyncOptions
build()
Creates new instance ofStateSyncOptions
enriched with all attributes provided tothis
builder.protected StateSyncOptionsBuilder
getThis()
Returns an instance of this class to be used in the superclass's generic methods.static StateSyncOptionsBuilder
of(com.commercetools.api.client.ProjectApiRoot ctpClient)
Creates a new instance ofStateSyncOptionsBuilder
given aProjectApiRoot
responsible for interaction with the target CTP project, with the default batch size (BATCH_SIZE_DEFAULT
= 500).-
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 StateSyncOptionsBuilder of(@Nonnull com.commercetools.api.client.ProjectApiRoot ctpClient)
Creates a new instance ofStateSyncOptionsBuilder
given aProjectApiRoot
responsible for interaction with the target CTP project, with the default batch size (BATCH_SIZE_DEFAULT
= 500).- Parameters:
ctpClient
- instance of theProjectApiRoot
responsible for interaction with the target CTP project.- Returns:
- new instance of
StateSyncOptionsBuilder
-
build
public StateSyncOptions build()
Creates new instance ofStateSyncOptions
enriched with all attributes provided tothis
builder.- Specified by:
build
in classBaseSyncOptionsBuilder<StateSyncOptionsBuilder,StateSyncOptions,com.commercetools.api.models.state.State,com.commercetools.api.models.state.StateDraft,com.commercetools.api.models.state.StateUpdateAction>
- Returns:
- new instance of
StateSyncOptions
-
getThis
protected StateSyncOptionsBuilder 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<StateSyncOptionsBuilder,StateSyncOptions,com.commercetools.api.models.state.State,com.commercetools.api.models.state.StateDraft,com.commercetools.api.models.state.StateUpdateAction>
- Returns:
- an instance of this class.
-
-