public class Workspace extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Workspace.QueueOrder |
Modifier and Type | Method and Description |
---|---|
static WorkspaceCreator |
creator(String friendlyName)
Create a WorkspaceCreator to execute create.
|
static WorkspaceDeleter |
deleter(String pathSid)
Create a WorkspaceDeleter to execute delete.
|
boolean |
equals(Object o) |
static WorkspaceFetcher |
fetcher(String pathSid)
Create a WorkspaceFetcher to execute fetch.
|
static Workspace |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Workspace object using the provided
ObjectMapper.
|
static Workspace |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Workspace object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
org.joda.time.DateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
String |
getDefaultActivityName()
Returns The name of the default activity.
|
String |
getDefaultActivitySid()
Returns The SID of the Activity that will be used when new Workers are
created in the Workspace.
|
URI |
getEventCallbackUrl()
Returns The URL we call when an event occurs.
|
String |
getEventsFilter()
Returns The list of Workspace events for which to call event_callback_url.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the Workspace resource.
|
Map<String,String> |
getLinks()
Returns The URLs of related resources.
|
Boolean |
getMultiTaskEnabled()
Returns Whether multi-tasking is enabled.
|
Workspace.QueueOrder |
getPrioritizeQueueOrder()
Returns The type of TaskQueue to prioritize when Workers are receiving Tasks
from both types of TaskQueues.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getTimeoutActivityName()
Returns The name of the timeout activity.
|
String |
getTimeoutActivitySid()
Returns The SID of the Activity that will be assigned to a Worker when a Task
reservation times out without a response.
|
URI |
getUrl()
Returns The absolute URL of the Workspace resource.
|
int |
hashCode() |
static WorkspaceReader |
reader()
Create a WorkspaceReader to execute read.
|
String |
toString() |
static WorkspaceUpdater |
updater(String pathSid)
Create a WorkspaceUpdater to execute update.
|
public static WorkspaceFetcher fetcher(String pathSid)
pathSid
- The SID of the resource to fetchpublic static WorkspaceUpdater updater(String pathSid)
pathSid
- The SID of the resource to updatepublic static WorkspaceReader reader()
public static WorkspaceCreator creator(String friendlyName)
friendlyName
- A string to describe the Workspace resourcepublic static WorkspaceDeleter deleter(String pathSid)
pathSid
- The SID of the resource to deletepublic static Workspace fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Workspace fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getDefaultActivityName()
public final String getDefaultActivitySid()
public final URI getEventCallbackUrl()
public final String getEventsFilter()
public final String getFriendlyName()
public final Boolean getMultiTaskEnabled()
public final String getSid()
public final String getTimeoutActivityName()
public final String getTimeoutActivitySid()
public final Workspace.QueueOrder getPrioritizeQueueOrder()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.