Class SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder
Object
SynchronizationBatchJsonInJobRequestBuilder
- Enclosing class:
SynchronizationBatchJsonInJobRequest
public static final class SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbatchSize
(int batchSize) Sets the size of the batch.build()
deleteFile
(boolean deleteFile) Sets whether the JSON file should be deleted after the synchronization job is finished, regardless of the result.Sets the JSON file to upload.Sets theid
of uploaded JSON file.Sets the name of the JSON file to upload.relationsAction
(String relationsAction) saveResult
(boolean saveResult) sendNotification
(boolean sendNotification) Sets whether job status notification should be sent.simulation
(boolean simulation) Sets whether the synchronization should be triggered as a simulation.synchronizationId
(String synchronizationId) (required) Sets the synchronizationid
used to distinguish different synchronizations.
-
Method Details
-
synchronizationId
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder synchronizationId(String synchronizationId) (required) Sets the synchronizationid
used to distinguish different synchronizations.- Parameters:
synchronizationId
- the synchronizationid
used to distinguish different synchronizations
-
fileId
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder fileId(UUID fileId) Sets theid
of uploaded JSON file.NOTE: if this field is used,
FileImportRequest.file
should not be set.- Parameters:
fileId
- theid
of uploaded JSON file
-
file
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder file(File file) Sets the JSON file to upload. If set, then alsoFileImportRequest.fileName
should be provided.NOTE: if this field is used,
FileImportRequest.fileId
should not be set.- Parameters:
file
- the JSON file to upload
-
fileName
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder fileName(String fileName) Sets the name of the JSON file to upload. If set, then alsoFileImportRequest.file
should be provided.NOTE: if this field is used,
FileImportRequest.fileId
should not be set.- Parameters:
fileName
- the name of the JSON file to upload
-
deleteFile
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder deleteFile(boolean deleteFile) Sets whether the JSON file should be deleted after the synchronization job is finished, regardless of the result. The default value isfalse
.NOTE: if the JSON file corresponds to an attachment, the attachment will be deleted. When import operation fails then file will not be deleted.
- Parameters:
deleteFile
- whether the JSON file should be deleted after the synchronization job is finished
-
sendNotification
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder sendNotification(boolean sendNotification) Sets whether job status notification should be sent. The default value isfalse
.- Parameters:
sendNotification
- whether job status notification should be sent
-
batchSize
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder batchSize(int batchSize) Sets the size of the batch. The default value is1000
.- Parameters:
batchSize
- the size of the batch
-
simulation
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder simulation(boolean simulation) Sets whether the synchronization should be triggered as a simulation. The default value isfalse
.If
true
, the result of the synchronization simulation will be available at the end of the job but no change will be applied to the DGC.- Parameters:
simulation
- whether the synchronization should be triggered as a simulation
-
saveResult
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder saveResult(boolean saveResult) - Parameters:
saveResult
- determine if we should save import result in jobs table in message column.
-
relationsAction
public SynchronizationBatchJsonInJobRequest.SynchronizationBatchJsonInJobRequestBuilder relationsAction(String relationsAction) - Parameters:
relationsAction
- define the relations action during refresh to replace or add/update
-
build
-