Class Worker
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.taskrouter.v1.workspace.Worker
-
- All Implemented Interfaces:
Serializable
public class Worker extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkerCreator
creator(String pathWorkspaceSid, String friendlyName)
Create a WorkerCreator to execute create.static WorkerDeleter
deleter(String pathWorkspaceSid, String pathSid)
Create a WorkerDeleter to execute delete.boolean
equals(Object o)
static WorkerFetcher
fetcher(String pathWorkspaceSid, String pathSid)
Create a WorkerFetcher to execute fetch.static Worker
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Worker object using the provided ObjectMapper.static Worker
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Worker object using the provided ObjectMapper.String
getAccountSid()
Returns The The ID of the account that owns this worker.String
getActivityName()
Returns The Filter by workers that are in a particular Activity by Friendly Name.String
getActivitySid()
Returns The Filter by workers that are in a particular Activity by SID.String
getAttributes()
Returns The JSON object describing this worker..Boolean
getAvailable()
Returns The Filter by workers that are available or unavailable..org.joda.time.DateTime
getDateCreated()
Returns The DateTime this worker was created.org.joda.time.DateTime
getDateStatusChanged()
Returns The DateTime of the last change to the Worker's activity..org.joda.time.DateTime
getDateUpdated()
Returns The DateTime of the last update.String
getFriendlyName()
Returns The Filter by a worker's friendly name.Map<String,String>
getLinks()
Returns The The links.String
getSid()
Returns The The unique ID of the worker.URI
getUrl()
Returns The The url.String
getWorkspaceSid()
Returns The The ID of the Workflow this worker is associated with.int
hashCode()
static WorkerReader
reader(String pathWorkspaceSid)
Create a WorkerReader to execute read.String
toString()
static WorkerUpdater
updater(String pathWorkspaceSid, String pathSid)
Create a WorkerUpdater to execute update.
-
-
-
Method Detail
-
reader
public static WorkerReader reader(String pathWorkspaceSid)
Create a WorkerReader to execute read.- Parameters:
pathWorkspaceSid
- The workspace_sid- Returns:
- WorkerReader capable of executing the read
-
creator
public static WorkerCreator creator(String pathWorkspaceSid, String friendlyName)
Create a WorkerCreator to execute create.- Parameters:
pathWorkspaceSid
- The workspace_sidfriendlyName
- String representing user-friendly name for the Worker.- Returns:
- WorkerCreator capable of executing the create
-
fetcher
public static WorkerFetcher fetcher(String pathWorkspaceSid, String pathSid)
Create a WorkerFetcher to execute fetch.- Parameters:
pathWorkspaceSid
- The workspace_sidpathSid
- The sid- Returns:
- WorkerFetcher capable of executing the fetch
-
updater
public static WorkerUpdater updater(String pathWorkspaceSid, String pathSid)
Create a WorkerUpdater to execute update.- Parameters:
pathWorkspaceSid
- The workspace_sidpathSid
- The sid- Returns:
- WorkerUpdater capable of executing the update
-
deleter
public static WorkerDeleter deleter(String pathWorkspaceSid, String pathSid)
Create a WorkerDeleter to execute delete.- Parameters:
pathWorkspaceSid
- The workspace_sidpathSid
- The sid- Returns:
- WorkerDeleter capable of executing the delete
-
fromJson
public static Worker fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Worker object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Worker object represented by the provided JSON
-
fromJson
public static Worker fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Worker object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Worker object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The ID of the account that owns this worker.- Returns:
- The ID of the account that owns this worker
-
getActivityName
public final String getActivityName()
Returns The Filter by workers that are in a particular Activity by Friendly Name.- Returns:
- Filter by workers that are in a particular Activity by Friendly Name
-
getActivitySid
public final String getActivitySid()
Returns The Filter by workers that are in a particular Activity by SID.- Returns:
- Filter by workers that are in a particular Activity by SID
-
getAttributes
public final String getAttributes()
Returns The JSON object describing this worker..- Returns:
- JSON object describing this worker.
-
getAvailable
public final Boolean getAvailable()
Returns The Filter by workers that are available or unavailable..- Returns:
- Filter by workers that are available or unavailable.
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The DateTime this worker was created.- Returns:
- DateTime this worker was created
-
getDateStatusChanged
public final org.joda.time.DateTime getDateStatusChanged()
Returns The DateTime of the last change to the Worker's activity..- Returns:
- DateTime of the last change to the Worker's activity.
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The DateTime of the last update.- Returns:
- DateTime of the last update
-
getFriendlyName
public final String getFriendlyName()
Returns The Filter by a worker's friendly name.- Returns:
- Filter by a worker's friendly name
-
getSid
public final String getSid()
Returns The The unique ID of the worker.- Returns:
- The unique ID of the worker
-
getWorkspaceSid
public final String getWorkspaceSid()
Returns The The ID of the Workflow this worker is associated with.- Returns:
- The ID of the Workflow this worker is associated with
-
getUrl
public final URI getUrl()
Returns The The url.- Returns:
- The url
-
-