Class WorkflowRunResponse


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.9.0")
    public class WorkflowRunResponse
    extends Object
    WorkflowRunResponse
    • Constructor Detail

      • WorkflowRunResponse

        public WorkflowRunResponse()
    • Method Detail

      • getId

        @Nonnull
        public UUID getId()
        The unique identifier for the Workflow Run.
        Returns:
        id
      • setId

        public void setId​(UUID id)
      • getWorkflowVersionId

        @Nullable
        public Integer getWorkflowVersionId()
        The identifier for the Workflow version.
        Returns:
        workflowVersionId
      • setWorkflowVersionId

        public void setWorkflowVersionId​(Integer workflowVersionId)
      • 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)
      • 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)
      • getReasons

        @Nullable
        public List<String> getReasons()
        The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow version.
        Returns:
        reasons
      • setReasons

        public void setReasons​(List<String> reasons)
      • getError

        @Nullable
        public WorkflowRunError getError()
        Error object. Only set when the Workflow Run status is 'error'.
        Returns:
        error
      • 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 property
        value - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates 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