Class Activity
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.taskrouter.v1.workspace.Activity
-
- All Implemented Interfaces:
Serializable
public class Activity extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActivityCreator
creator(String pathWorkspaceSid, String friendlyName)
static ActivityDeleter
deleter(String pathWorkspaceSid, String pathSid)
boolean
equals(Object o)
static ActivityFetcher
fetcher(String pathWorkspaceSid, String pathSid)
static Activity
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Activity object using the provided ObjectMapper.static Activity
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Activity object using the provided ObjectMapper.String
getAccountSid()
Boolean
getAvailable()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
Map<String,String>
getLinks()
String
getSid()
URI
getUrl()
String
getWorkspaceSid()
int
hashCode()
static ActivityReader
reader(String pathWorkspaceSid)
static ActivityUpdater
updater(String pathWorkspaceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static ActivityCreator creator(String pathWorkspaceSid, String friendlyName)
-
fetcher
public static ActivityFetcher fetcher(String pathWorkspaceSid, String pathSid)
-
deleter
public static ActivityDeleter deleter(String pathWorkspaceSid, String pathSid)
-
reader
public static ActivityReader reader(String pathWorkspaceSid)
-
updater
public static ActivityUpdater updater(String pathWorkspaceSid, String pathSid)
-
fromJson
public static Activity fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Activity object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Activity object represented by the provided JSON
-
fromJson
public static Activity fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Activity object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Activity object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getAvailable
public final Boolean getAvailable()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getFriendlyName
public final String getFriendlyName()
-
getSid
public final String getSid()
-
getWorkspaceSid
public final String getWorkspaceSid()
-
getUrl
public final URI getUrl()
-
-