public class AddSourceRequest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Address |
deliveryAddress |
java.lang.Integer |
jobId |
java.lang.String |
uploadedFileName |
java.lang.String |
uploadUrl |
| Constructor and Description |
|---|
AddSourceRequest() |
| Modifier and Type | Method and Description |
|---|---|
Address |
getDeliveryAddress() |
java.lang.Integer |
getJobId() |
java.lang.String |
getUploadedFileName() |
java.lang.String |
getUploadUrl() |
boolean |
isValid() |
void |
setDeliveryAddress(Address deliveryAddress)
This is where you can supply the delivery address.
|
void |
setJobId(java.lang.Integer jobId)
Used to reference the job this source will be attached.
|
void |
setUploadedFileName(java.lang.String uploadedFileName)
If the source file has already been uploaded, provide the name of that
file here so that the provided delivery address can be attached.
|
void |
setUploadUrl(java.lang.String uploadUrl)
The uploadUrl is a publicly available url for the source file provided.
|
public java.lang.Integer jobId
public java.lang.String uploadUrl
public java.lang.String uploadedFileName
public Address deliveryAddress
public java.lang.Integer getJobId()
public void setJobId(java.lang.Integer jobId)
Used to reference the job this source will be attached. This field is required.
jobId - id of jobpublic java.lang.String getUploadUrl()
public void setUploadUrl(java.lang.String uploadUrl)
The uploadUrl is a publicly available url for the source file provided. If this parameter is set, the url will be called and the file downloaded to the source directory of the provided job.
Ex. https://mydomain.com/MyFantasticFile.pdf
Note: This can be a pre-signed url.uploadUrl - publicly available url to source filepublic java.lang.String getUploadedFileName()
public void setUploadedFileName(java.lang.String uploadedFileName)
If the source file has already been uploaded, provide the name of that file here so that the provided delivery address can be attached.
Ex. MyFantasticFile.pdf
uploadedFileName - name of uploaded filepublic Address getDeliveryAddress()
public void setDeliveryAddress(Address deliveryAddress)
This is where you can supply the delivery address. Use this if you do not want to provide the address via text extraction or CSV reference. If this address is not provided, an attempt to extract the address from the document will be made.
deliveryAddress - address object to be associated with this source documentpublic boolean isValid()