Package org.openapitools.client.model
Class ExternalTaskFailureDto
- java.lang.Object
-
- org.openapitools.client.model.ExternalTaskFailureDto
-
public class ExternalTaskFailureDto extends Object
ExternalTaskFailureDto
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ERROR_DETAILSstatic StringSERIALIZED_NAME_ERROR_MESSAGEstatic StringSERIALIZED_NAME_LOCAL_VARIABLESstatic StringSERIALIZED_NAME_RETRIESstatic StringSERIALIZED_NAME_RETRY_TIMEOUTstatic StringSERIALIZED_NAME_VARIABLESstatic StringSERIALIZED_NAME_WORKER_ID
-
Constructor Summary
Constructors Constructor Description ExternalTaskFailureDto()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ExternalTaskFailureDtoerrorDetails(String errorDetails)ExternalTaskFailureDtoerrorMessage(String errorMessage)StringgetErrorDetails()A detailed error description.StringgetErrorMessage()An message indicating the reason of the failure.Map<String,VariableValueDto>getLocalVariables()A JSON object containing local variable key-value pairs.IntegergetRetries()A number of how often the task should be retried.LonggetRetryTimeout()A timeout in milliseconds before the external task becomes available again for fetching.Map<String,VariableValueDto>getVariables()A JSON object containing variable key-value pairs.StringgetWorkerId()**Mandatory.** The ID of the worker who is performing the operation on the external task.inthashCode()ExternalTaskFailureDtolocalVariables(Map<String,VariableValueDto> localVariables)ExternalTaskFailureDtoputLocalVariablesItem(String key, VariableValueDto localVariablesItem)ExternalTaskFailureDtoputVariablesItem(String key, VariableValueDto variablesItem)ExternalTaskFailureDtoretries(Integer retries)ExternalTaskFailureDtoretryTimeout(Long retryTimeout)voidsetErrorDetails(String errorDetails)voidsetErrorMessage(String errorMessage)voidsetLocalVariables(Map<String,VariableValueDto> localVariables)voidsetRetries(Integer retries)voidsetRetryTimeout(Long retryTimeout)voidsetVariables(Map<String,VariableValueDto> variables)voidsetWorkerId(String workerId)StringtoString()ExternalTaskFailureDtovariables(Map<String,VariableValueDto> variables)ExternalTaskFailureDtoworkerId(String workerId)
-
-
-
Field Detail
-
SERIALIZED_NAME_ERROR_MESSAGE
public static final String SERIALIZED_NAME_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR_DETAILS
public static final String SERIALIZED_NAME_ERROR_DETAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RETRIES
public static final String SERIALIZED_NAME_RETRIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RETRY_TIMEOUT
public static final String SERIALIZED_NAME_RETRY_TIMEOUT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VARIABLES
public static final String SERIALIZED_NAME_VARIABLES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LOCAL_VARIABLES
public static final String SERIALIZED_NAME_LOCAL_VARIABLES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WORKER_ID
public static final String SERIALIZED_NAME_WORKER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
errorMessage
public ExternalTaskFailureDto errorMessage(String errorMessage)
-
getErrorMessage
public String getErrorMessage()
An message indicating the reason of the failure.- Returns:
- errorMessage
-
setErrorMessage
public void setErrorMessage(String errorMessage)
-
errorDetails
public ExternalTaskFailureDto errorDetails(String errorDetails)
-
getErrorDetails
public String getErrorDetails()
A detailed error description.- Returns:
- errorDetails
-
setErrorDetails
public void setErrorDetails(String errorDetails)
-
retries
public ExternalTaskFailureDto retries(Integer retries)
-
getRetries
public Integer getRetries()
A number of how often the task should be retried. Must be >= 0. If this is 0, an incident is created and the task cannot be fetched anymore unless the retries are increased again. The incident's message is set to the `errorMessage` parameter.- Returns:
- retries
-
setRetries
public void setRetries(Integer retries)
-
retryTimeout
public ExternalTaskFailureDto retryTimeout(Long retryTimeout)
-
getRetryTimeout
public Long getRetryTimeout()
A timeout in milliseconds before the external task becomes available again for fetching. Must be >= 0.- Returns:
- retryTimeout
-
setRetryTimeout
public void setRetryTimeout(Long retryTimeout)
-
variables
public ExternalTaskFailureDto variables(Map<String,VariableValueDto> variables)
-
putVariablesItem
public ExternalTaskFailureDto putVariablesItem(String key, VariableValueDto variablesItem)
-
getVariables
public Map<String,VariableValueDto> getVariables()
A JSON object containing variable key-value pairs. Each key is a variable name and each value a JSON variable value object with the following properties:- Returns:
- variables
-
setVariables
public void setVariables(Map<String,VariableValueDto> variables)
-
localVariables
public ExternalTaskFailureDto localVariables(Map<String,VariableValueDto> localVariables)
-
putLocalVariablesItem
public ExternalTaskFailureDto putLocalVariablesItem(String key, VariableValueDto localVariablesItem)
-
getLocalVariables
public Map<String,VariableValueDto> getLocalVariables()
A JSON object containing local variable key-value pairs. Local variables are set only in the scope of external task. Each key is a variable name and each value a JSON variable value object with the following properties:- Returns:
- localVariables
-
setLocalVariables
public void setLocalVariables(Map<String,VariableValueDto> localVariables)
-
workerId
public ExternalTaskFailureDto workerId(String workerId)
-
getWorkerId
public String getWorkerId()
**Mandatory.** The ID of the worker who is performing the operation on the external task. If the task is already locked, must match the id of the worker who has most recently locked the task.- Returns:
- workerId
-
setWorkerId
public void setWorkerId(String workerId)
-
-