Class ImportJsonInJobRequest.ImportJsonInJobRequestBuilder
- Object
-
- ImportJsonInJobRequestBuilder
-
- Enclosing class:
- ImportJsonInJobRequest
public static final class ImportJsonInJobRequest.ImportJsonInJobRequestBuilder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
fileId
public ImportJsonInJobRequest.ImportJsonInJobRequestBuilder 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 ImportJsonInJobRequest.ImportJsonInJobRequestBuilder 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 ImportJsonInJobRequest.ImportJsonInJobRequestBuilder 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 ImportJsonInJobRequest.ImportJsonInJobRequestBuilder deleteFile(boolean 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
public ImportJsonInJobRequest.ImportJsonInJobRequestBuilder batchSize(int batchSize)
Sets the size of the batch. The default value is1000
.- Parameters:
batchSize
- the size of the batch
-
simulation
public ImportJsonInJobRequest.ImportJsonInJobRequestBuilder simulation(boolean 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
public ImportJsonInJobRequest.ImportJsonInJobRequestBuilder saveResult(boolean saveResult)
- Parameters:
saveResult
- determine if we should save import result in jobs table in message column.
-
relationsAction
public ImportJsonInJobRequest.ImportJsonInJobRequestBuilder relationsAction(String relationsAction)
- Parameters:
relationsAction
- define the relations action during refresh to replace or add/update
-
build
public ImportJsonInJobRequest build()
-
-