Package com.onfido.model
Class WorkflowRunResponse
- java.lang.Object
-
- com.onfido.model.WorkflowRunResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class WorkflowRunResponse extends Object
WorkflowRunResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowRunResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DASHBOARD_URLstatic StringSERIALIZED_NAME_ERRORstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_OUTPUTstatic StringSERIALIZED_NAME_REASONSstatic StringSERIALIZED_NAME_SDK_TOKENstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_WORKFLOW_VERSION_ID
-
Constructor Summary
Constructors Constructor Description WorkflowRunResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowRunResponseaddReasonsItem(String reasonsItem)WorkflowRunResponsedashboardUrl(String dashboardUrl)booleanequals(Object o)WorkflowRunResponseerror(WorkflowRunError error)static WorkflowRunResponsefromJson(String jsonString)Create an instance of WorkflowRunResponse given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetDashboardUrl()The URL for viewing the Workflow Run results on your Onfido Dashboard.WorkflowRunErrorgetError()Error object.UUIDgetId()The unique identifier for the Workflow Run.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.IntegergetWorkflowVersionId()The identifier for the Workflow version.inthashCode()WorkflowRunResponseid(UUID id)WorkflowRunResponseoutput(Object output)WorkflowRunResponseputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.WorkflowRunResponsereasons(List<String> reasons)WorkflowRunResponsesdkToken(String sdkToken)voidsetDashboardUrl(String dashboardUrl)voidsetError(WorkflowRunError error)voidsetId(UUID id)voidsetOutput(Object output)voidsetReasons(List<String> reasons)voidsetSdkToken(String sdkToken)voidsetStatus(WorkflowRunStatus status)voidsetWorkflowVersionId(Integer workflowVersionId)WorkflowRunResponsestatus(WorkflowRunStatus status)StringtoJson()Convert an instance of WorkflowRunResponse to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundWorkflowRunResponseworkflowVersionId(Integer workflowVersionId)
-
-
-
Field Detail
-
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
-
id
public WorkflowRunResponse id(UUID id)
-
setId
public void setId(UUID id)
-
workflowVersionId
public WorkflowRunResponse workflowVersionId(Integer workflowVersionId)
-
getWorkflowVersionId
@Nullable public Integer getWorkflowVersionId()
The identifier for the Workflow version.- Returns:
- workflowVersionId
-
setWorkflowVersionId
public void setWorkflowVersionId(Integer workflowVersionId)
-
dashboardUrl
public WorkflowRunResponse 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 WorkflowRunResponse status(WorkflowRunStatus status)
-
getStatus
@Nullable public WorkflowRunStatus getStatus()
The status of the Workflow Run.- Returns:
- status
-
setStatus
public void setStatus(WorkflowRunStatus status)
-
output
public WorkflowRunResponse 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 WorkflowRunResponse reasons(List<String> reasons)
-
addReasonsItem
public WorkflowRunResponse 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 WorkflowRunResponse 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 WorkflowRunResponse 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 WorkflowRunResponse 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 WorkflowRunResponse 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 WorkflowRunResponse
-
fromJson
public static WorkflowRunResponse fromJson(String jsonString) throws IOException
Create an instance of WorkflowRunResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WorkflowRunResponse
- Throws:
IOException- if the JSON string is invalid with respect to WorkflowRunResponse
-
toJson
public String toJson()
Convert an instance of WorkflowRunResponse to an JSON string- Returns:
- JSON string
-
-