Package com.onfido.model
Class WorkflowRun
- java.lang.Object
-
- com.onfido.model.WorkflowRun
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class WorkflowRun extends Object
WorkflowRun
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowRun.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_APPLICANT_IDstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_CUSTOMER_USER_IDstatic StringSERIALIZED_NAME_DASHBOARD_URLstatic StringSERIALIZED_NAME_ERRORstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKstatic StringSERIALIZED_NAME_OUTPUTstatic StringSERIALIZED_NAME_REASONSstatic StringSERIALIZED_NAME_SDK_TOKENstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_UPDATED_ATstatic StringSERIALIZED_NAME_WORKFLOW_IDstatic StringSERIALIZED_NAME_WORKFLOW_VERSION_ID
-
Constructor Summary
Constructors Constructor Description WorkflowRun()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowRunaddReasonsItem(String reasonsItem)WorkflowRunaddTagsItem(String tagsItem)WorkflowRunapplicantId(UUID applicantId)WorkflowRuncreatedAt(OffsetDateTime createdAt)WorkflowRuncustomerUserId(String customerUserId)WorkflowRundashboardUrl(String dashboardUrl)booleanequals(Object o)WorkflowRunerror(WorkflowRunError error)static WorkflowRunfromJson(String jsonString)Create an instance of WorkflowRun given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.UUIDgetApplicantId()The unique identifier for the Applicant.OffsetDateTimegetCreatedAt()The date and time when the Workflow Run was created.StringgetCustomerUserId()Customer-provided user identifier.StringgetDashboardUrl()The URL for viewing the Workflow Run results on your Onfido Dashboard.WorkflowRunErrorgetError()Error object.UUIDgetId()The unique identifier for the Workflow Run.WorkflowRunLinkgetLink()Object for the configuration of the Workflow Run link.ObjectgetOutput()Output object contains all of the properties configured on the Workflow version.List<String>getReasons()The reasons the Workflow Run outcome was reached.StringgetSdkToken()Client token to use when loading this workflow run in the Onfido SDK.WorkflowRunStatusgetStatus()The status of the Workflow Run.List<String>getTags()Tags or labels assigned to the workflow run.OffsetDateTimegetUpdatedAt()The date and time when the Workflow Run was last updated.UUIDgetWorkflowId()The unique identifier for the Workflow.IntegergetWorkflowVersionId()The identifier for the Workflow version.inthashCode()WorkflowRunid(UUID id)WorkflowRunlink(WorkflowRunLink link)WorkflowRunoutput(Object output)WorkflowRunputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.WorkflowRunreasons(List<String> reasons)WorkflowRunsdkToken(String sdkToken)voidsetApplicantId(UUID applicantId)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCustomerUserId(String customerUserId)voidsetDashboardUrl(String dashboardUrl)voidsetError(WorkflowRunError error)voidsetId(UUID id)voidsetLink(WorkflowRunLink link)voidsetOutput(Object output)voidsetReasons(List<String> reasons)voidsetSdkToken(String sdkToken)voidsetStatus(WorkflowRunStatus status)voidsetTags(List<String> tags)voidsetUpdatedAt(OffsetDateTime updatedAt)voidsetWorkflowId(UUID workflowId)voidsetWorkflowVersionId(Integer workflowVersionId)WorkflowRunstatus(WorkflowRunStatus status)WorkflowRuntags(List<String> tags)StringtoJson()Convert an instance of WorkflowRun to an JSON stringStringtoString()WorkflowRunupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundWorkflowRunworkflowId(UUID workflowId)WorkflowRunworkflowVersionId(Integer workflowVersionId)
-
-
-
Field Detail
-
SERIALIZED_NAME_APPLICANT_ID
public static final String SERIALIZED_NAME_APPLICANT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WORKFLOW_ID
public static final String SERIALIZED_NAME_WORKFLOW_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CUSTOMER_USER_ID
public static final String SERIALIZED_NAME_CUSTOMER_USER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINK
public static final String SERIALIZED_NAME_LINK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WORKFLOW_VERSION_ID
public static final String SERIALIZED_NAME_WORKFLOW_VERSION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DASHBOARD_URL
public static final String SERIALIZED_NAME_DASHBOARD_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OUTPUT
public static final String SERIALIZED_NAME_OUTPUT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REASONS
public static final String SERIALIZED_NAME_REASONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR
public static final String SERIALIZED_NAME_ERROR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SDK_TOKEN
public static final String SERIALIZED_NAME_SDK_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
applicantId
public WorkflowRun applicantId(UUID applicantId)
-
getApplicantId
@Nonnull public UUID getApplicantId()
The unique identifier for the Applicant.- Returns:
- applicantId
-
setApplicantId
public void setApplicantId(UUID applicantId)
-
workflowId
public WorkflowRun workflowId(UUID workflowId)
-
getWorkflowId
@Nonnull public UUID getWorkflowId()
The unique identifier for the Workflow.- Returns:
- workflowId
-
setWorkflowId
public void setWorkflowId(UUID workflowId)
-
tags
public WorkflowRun tags(List<String> tags)
-
addTagsItem
public WorkflowRun addTagsItem(String tagsItem)
-
getTags
@Nullable public List<String> getTags()
Tags or labels assigned to the workflow run.- Returns:
- tags
-
customerUserId
public WorkflowRun customerUserId(String customerUserId)
-
getCustomerUserId
@Nullable public String getCustomerUserId()
Customer-provided user identifier.- Returns:
- customerUserId
-
setCustomerUserId
public void setCustomerUserId(String customerUserId)
-
link
public WorkflowRun link(WorkflowRunLink link)
-
getLink
@Nullable public WorkflowRunLink getLink()
Object for the configuration of the Workflow Run link.- Returns:
- link
-
setLink
public void setLink(WorkflowRunLink link)
-
createdAt
public WorkflowRun createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
The date and time when the Workflow Run was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public WorkflowRun updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
The date and time when the Workflow Run was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
id
public WorkflowRun id(UUID id)
-
setId
public void setId(UUID id)
-
workflowVersionId
public WorkflowRun workflowVersionId(Integer workflowVersionId)
-
getWorkflowVersionId
@Nullable public Integer getWorkflowVersionId()
The identifier for the Workflow version.- Returns:
- workflowVersionId
-
setWorkflowVersionId
public void setWorkflowVersionId(Integer workflowVersionId)
-
dashboardUrl
public WorkflowRun dashboardUrl(String dashboardUrl)
-
getDashboardUrl
@Nullable public String getDashboardUrl()
The URL for viewing the Workflow Run results on your Onfido Dashboard.- Returns:
- dashboardUrl
-
setDashboardUrl
public void setDashboardUrl(String dashboardUrl)
-
status
public WorkflowRun status(WorkflowRunStatus status)
-
getStatus
@Nullable public WorkflowRunStatus getStatus()
The status of the Workflow Run.- Returns:
- status
-
setStatus
public void setStatus(WorkflowRunStatus status)
-
output
public WorkflowRun output(Object output)
-
getOutput
@Nullable public Object getOutput()
Output object contains all of the properties configured on the Workflow version.- Returns:
- output
-
setOutput
public void setOutput(Object output)
-
reasons
public WorkflowRun reasons(List<String> reasons)
-
addReasonsItem
public WorkflowRun addReasonsItem(String reasonsItem)
-
getReasons
@Nullable public List<String> getReasons()
The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow version.- Returns:
- reasons
-
error
public WorkflowRun error(WorkflowRunError error)
-
getError
@Nullable public WorkflowRunError getError()
Error object. Only set when the Workflow Run status is 'error'.- Returns:
- error
-
setError
public void setError(WorkflowRunError error)
-
sdkToken
public WorkflowRun sdkToken(String sdkToken)
-
getSdkToken
@Nullable public String getSdkToken()
Client token to use when loading this workflow run in the Onfido SDK.- Returns:
- sdkToken
-
setSdkToken
public void setSdkToken(String sdkToken)
-
putAdditionalProperty
public WorkflowRun putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the WorkflowRun instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to WorkflowRun
-
fromJson
public static WorkflowRun fromJson(String jsonString) throws IOException
Create an instance of WorkflowRun given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WorkflowRun
- Throws:
IOException- if the JSON string is invalid with respect to WorkflowRun
-
toJson
public String toJson()
Convert an instance of WorkflowRun to an JSON string- Returns:
- JSON string
-
-