public class Worker extends Resource
Modifier and Type | Method and 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 account_sid.
|
String |
getActivityName()
Returns The The activity_name.
|
String |
getActivitySid()
Returns The The activity_sid.
|
String |
getAttributes()
Returns The The attributes.
|
Boolean |
getAvailable()
Returns The The available.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateStatusChanged()
Returns The The date_status_changed.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
Map<String,String> |
getLinks()
Returns The The links.
|
String |
getSid()
Returns The The sid.
|
URI |
getUrl()
Returns The The url.
|
String |
getWorkspaceSid()
Returns The The workspace_sid.
|
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.
|
public static WorkerReader reader(String pathWorkspaceSid)
pathWorkspaceSid
- The workspace_sidpublic static WorkerCreator creator(String pathWorkspaceSid, String friendlyName)
pathWorkspaceSid
- The workspace_sidfriendlyName
- The friendly_namepublic static WorkerFetcher fetcher(String pathWorkspaceSid, String pathSid)
pathWorkspaceSid
- The workspace_sidpathSid
- The sidpublic static WorkerUpdater updater(String pathWorkspaceSid, String pathSid)
pathWorkspaceSid
- The workspace_sidpathSid
- The sidpublic static WorkerDeleter deleter(String pathWorkspaceSid, String pathSid)
pathWorkspaceSid
- The workspace_sidpathSid
- The sidpublic static Worker fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Worker fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getActivityName()
public final String getActivitySid()
public final String getAttributes()
public final Boolean getAvailable()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateStatusChanged()
public final org.joda.time.DateTime getDateUpdated()
public final String getFriendlyName()
public final String getSid()
public final String getWorkspaceSid()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.