public class Task extends SidResource
Modifier and Type | Class and Description |
---|---|
static class |
Task.Status |
Modifier and Type | Method and Description |
---|---|
static TaskCreator |
create(String workspaceSid,
String attributes,
String workflowSid)
Create a TaskCreator to execute create.
|
static TaskDeleter |
delete(String workspaceSid,
String sid)
Create a TaskDeleter to execute delete.
|
boolean |
equals(Object o) |
static TaskFetcher |
fetch(String workspaceSid,
String sid)
Create a TaskFetcher to execute fetch.
|
static Task |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Task object using the provided
ObjectMapper.
|
static Task |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Task object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
Integer |
getAge()
Returns The The age.
|
Task.Status |
getAssignmentStatus()
Returns The The assignment_status.
|
String |
getAttributes()
Returns The The attributes.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
Integer |
getPriority()
Returns The The priority.
|
String |
getReason()
Returns The The reason.
|
String |
getSid()
Returns The The sid.
|
String |
getTaskQueueSid()
Returns The The task_queue_sid.
|
Integer |
getTimeout()
Returns The The timeout.
|
String |
getWorkflowSid()
Returns The The workflow_sid.
|
String |
getWorkspaceSid()
Returns The The workspace_sid.
|
int |
hashCode() |
static TaskReader |
read(String workspaceSid)
Create a TaskReader to execute read.
|
String |
toString() |
static TaskUpdater |
update(String workspaceSid,
String sid)
Create a TaskUpdater to execute update.
|
public static TaskFetcher fetch(String workspaceSid, String sid)
workspaceSid
- The workspace_sidsid
- The sidpublic static TaskUpdater update(String workspaceSid, String sid)
workspaceSid
- The workspace_sidsid
- The sidpublic static TaskDeleter delete(String workspaceSid, String sid)
workspaceSid
- The workspace_sidsid
- The sidpublic static TaskReader read(String workspaceSid)
workspaceSid
- The workspace_sidpublic static TaskCreator create(String workspaceSid, String attributes, String workflowSid)
workspaceSid
- The workspace_sidattributes
- The attributesworkflowSid
- The workflow_sidpublic static Task fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Task fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final Integer getAge()
public final Task.Status getAssignmentStatus()
public final String getAttributes()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final Integer getPriority()
public final String getReason()
public final String getSid()
getSid
in class SidResource
public final String getTaskQueueSid()
public final Integer getTimeout()
public final String getWorkflowSid()
public final String getWorkspaceSid()
Copyright © 2011 Twilio, Inc. All Rights Reserved.