Package org.zendesk.client.v2.model
Class JobResult
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.zendesk.client.v2.model.JobResult
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class JobResult extends HashMap<String,Object> implements Serializable
https://developer.zendesk.com/rest_api/docs/support/job_statuses#resultsResult entries have various properties. There is no clear description thus let's use a generic Map Only the "id" of the object in Zendesk (Always a Long) seems to be always present. We define few others helpers.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCOUNT_IDThe account IDstatic StringACTIONthe action the job attemptedstatic StringDETAILSThe details about the errorstatic StringEMAILThe user emailstatic StringERRORAn error codestatic StringEXTERNAL_IDThe user external IDstatic StringIDthe id of the resource created or updatedstatic StringINDEXthe index number of the resultstatic StringSTATUSthe status of the actionstatic StringSUCCESSwhether the action was successful or not
-
Constructor Summary
Constructors Constructor Description JobResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetAccountId()StringgetAction()StringgetDetails()StringgetEmail()StringgetError()StringgetExternalId()LonggetId()LonggetIndex()StringgetStatus()BooleangetSuccess()-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
ACCOUNT_ID
public static final String ACCOUNT_ID
The account ID- See Also:
- Constant Field Values
-
ACTION
public static final String ACTION
the action the job attempted- See Also:
- Constant Field Values
-
DETAILS
public static final String DETAILS
The details about the error- See Also:
- Constant Field Values
-
EMAIL
public static final String EMAIL
The user email- See Also:
- Constant Field Values
-
ERROR
public static final String ERROR
An error code- See Also:
- Constant Field Values
-
EXTERNAL_ID
public static final String EXTERNAL_ID
The user external ID- See Also:
- Constant Field Values
-
ID
public static final String ID
the id of the resource created or updated- See Also:
- Constant Field Values
-
INDEX
public static final String INDEX
the index number of the result- See Also:
- Constant Field Values
-
STATUS
public static final String STATUS
the status of the action- See Also:
- Constant Field Values
-
SUCCESS
public static final String SUCCESS
whether the action was successful or not- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccountId
public Long getAccountId()
-
getAction
public String getAction()
-
getDetails
public String getDetails()
-
getEmail
public String getEmail()
-
getError
public String getError()
-
getExternalId
public String getExternalId()
-
getId
public Long getId()
-
getIndex
public Long getIndex()
-
getStatus
public String getStatus()
-
getSuccess
public Boolean getSuccess()
-
-