Package com.onfido.model
Class TaskItem
- java.lang.Object
-
- com.onfido.model.TaskItem
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class TaskItem extends Object
TaskItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTaskItem.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_TASK_DEF_IDstatic StringSERIALIZED_NAME_TASK_DEF_VERSIONstatic StringSERIALIZED_NAME_UPDATED_ATstatic StringSERIALIZED_NAME_WORKFLOW_RUN_ID
-
Constructor Summary
Constructors Constructor Description TaskItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskItemcreatedAt(OffsetDateTime createdAt)booleanequals(Object o)static TaskItemfromJson(String jsonString)Create an instance of TaskItem given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.OffsetDateTimegetCreatedAt()The date and time when the Task was created.StringgetId()The identifier for the Task.StringgetTaskDefId()The identifier for the Task Definition.StringgetTaskDefVersion()The task definition version.OffsetDateTimegetUpdatedAt()The date and time when the Task was last updated.UUIDgetWorkflowRunId()The workflow run id the task belongs to.inthashCode()TaskItemid(String id)TaskItemputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetCreatedAt(OffsetDateTime createdAt)voidsetId(String id)voidsetTaskDefId(String taskDefId)voidsetTaskDefVersion(String taskDefVersion)voidsetUpdatedAt(OffsetDateTime updatedAt)voidsetWorkflowRunId(UUID workflowRunId)TaskItemtaskDefId(String taskDefId)TaskItemtaskDefVersion(String taskDefVersion)StringtoJson()Convert an instance of TaskItem to an JSON stringStringtoString()TaskItemupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundTaskItemworkflowRunId(UUID workflowRunId)
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WORKFLOW_RUN_ID
public static final String SERIALIZED_NAME_WORKFLOW_RUN_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TASK_DEF_ID
public static final String SERIALIZED_NAME_TASK_DEF_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TASK_DEF_VERSION
public static final String SERIALIZED_NAME_TASK_DEF_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(String id)
-
getWorkflowRunId
@Nullable public UUID getWorkflowRunId()
The workflow run id the task belongs to.- Returns:
- workflowRunId
-
setWorkflowRunId
public void setWorkflowRunId(UUID workflowRunId)
-
getTaskDefId
@Nullable public String getTaskDefId()
The identifier for the Task Definition.- Returns:
- taskDefId
-
setTaskDefId
public void setTaskDefId(String taskDefId)
-
getTaskDefVersion
@Nullable public String getTaskDefVersion()
The task definition version.- Returns:
- taskDefVersion
-
setTaskDefVersion
public void setTaskDefVersion(String taskDefVersion)
-
createdAt
public TaskItem createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
The date and time when the Task was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public TaskItem updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
The date and time when the Task was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
putAdditionalProperty
public TaskItem 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 TaskItem 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 TaskItem
-
fromJson
public static TaskItem fromJson(String jsonString) throws IOException
Create an instance of TaskItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TaskItem
- Throws:
IOException- if the JSON string is invalid with respect to TaskItem
-
toJson
public String toJson()
Convert an instance of TaskItem to an JSON string- Returns:
- JSON string
-
-