Class ImportJsonInJobRequest.ImportJsonInJobRequestBuilder
Object
ImportJsonInJobRequestBuilder
- Enclosing class:
ImportJsonInJobRequest
-
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 import 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 import should be triggered as a simulation.
-
Method Details
-
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
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
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
Sets whether the JSON file should be deleted after the import 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 import job is finished
-
sendNotification
public ImportJsonInJobRequest.ImportJsonInJobRequestBuilder 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
Sets the size of the batch. The default value is1000
.- Parameters:
batchSize
- the size of the batch
-
simulation
Sets whether the import should be triggered as a simulation. The default value isfalse
.If
true
, the result of the import simulation will be available at the end of the job but no change will be applied to the DGC.- Parameters:
simulation
- whether the import should be triggered as a simulation
-
saveResult
- Parameters:
saveResult
- determine if we should save import result in jobs table in message column.
-
relationsAction
- Parameters:
relationsAction
- define the relations action during refresh to replace or add/update
-
build
-