Class JobErrorRequest

java.lang.Object
io.camunda.client.protocol.rest.JobErrorRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class JobErrorRequest extends Object
JobErrorRequest
  • Field Details

  • Constructor Details

    • JobErrorRequest

      public JobErrorRequest()
  • Method Details

    • errorCode

      public JobErrorRequest errorCode(@Nonnull String errorCode)
    • getErrorCode

      @Nonnull public String getErrorCode()
      The error code that will be matched with an error catch event.
      Returns:
      errorCode
    • setErrorCode

      public void setErrorCode(@Nonnull String errorCode)
    • errorMessage

      public JobErrorRequest errorMessage(@Nullable String errorMessage)
    • getErrorMessage

      @Nullable public String getErrorMessage()
      An error message that provides additional context.
      Returns:
      errorMessage
    • setErrorMessage

      public void setErrorMessage(@Nullable String errorMessage)
    • variables

      public JobErrorRequest variables(@Nullable Map<String,Object> variables)
    • putVariablesItem

      public JobErrorRequest putVariablesItem(String key, Object variablesItem)
    • getVariables

      @Nullable public Map<String,Object> getVariables()
      JSON object that will instantiate the variables at the local scope of the error catch event that catches the thrown error.
      Returns:
      variables
    • setVariables

      public void setVariables(@Nullable Map<String,Object> variables)
    • leaseToken

      public JobErrorRequest leaseToken(@Nullable String leaseToken)
    • getLeaseToken

      @Nullable public String getLeaseToken()
      The token identifying a leased job's activation, obtained from `ActivatedJobResult.leaseToken`. For a leased job, the matching token must be supplied to prove the command comes from the worker that holds the current lease; a command with no token is rejected. A command carrying a stale token is likewise rejected, fencing the job against a superseded activation (for example, after the job timed out or failed and was re-activated by another worker). A job that was activated without a lease requires no token.
      Returns:
      leaseToken
    • setLeaseToken

      public void setLeaseToken(@Nullable String leaseToken)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object