Package com.mindee.parsing.v2
Class Job
- java.lang.Object
-
- com.mindee.parsing.v2.Job
-
public final class Job extends Object
Defines an enqueued Job.
-
-
Constructor Summary
Constructors Constructor Description Job()
Job(LocalDateTime createdAt, String id, String status, ErrorResponse error, String modelId, String fileName, String fileAlias, String pollingUrl, String resultUrl, List<JobResponseWebhook> webhooks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
LocalDateTime
getCreatedAt()
Date and time the job was created at.ErrorResponse
getError()
Status of the job.String
getFileAlias()
Optional alias of the file.String
getFileName()
Name of the file.String
getId()
ID of the job.String
getModelId()
ID of the model.String
getPollingUrl()
Polling URL.String
getResultUrl()
Result URL, when available.String
getStatus()
Status of the job.List<JobResponseWebhook>
getWebhooks()
Polling URL.int
hashCode()
-
-
-
Constructor Detail
-
Job
public Job(LocalDateTime createdAt, String id, String status, ErrorResponse error, String modelId, String fileName, String fileAlias, String pollingUrl, String resultUrl, List<JobResponseWebhook> webhooks)
-
Job
public Job()
-
-
Method Detail
-
getCreatedAt
public LocalDateTime getCreatedAt()
Date and time the job was created at.
-
getId
public String getId()
ID of the job.
-
getStatus
public String getStatus()
Status of the job.
-
getError
public ErrorResponse getError()
Status of the job.
-
getModelId
public String getModelId()
ID of the model.
-
getFileName
public String getFileName()
Name of the file.
-
getFileAlias
public String getFileAlias()
Optional alias of the file.
-
getPollingUrl
public String getPollingUrl()
Polling URL.
-
getResultUrl
public String getResultUrl()
Result URL, when available.
-
getWebhooks
public List<JobResponseWebhook> getWebhooks()
Polling URL.
-
-