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 ActivityCreatorcreator(String pathWorkspaceSid, String friendlyName)static ActivityDeleterdeleter(String pathWorkspaceSid, String pathSid)booleanequals(Object o)static ActivityFetcherfetcher(String pathWorkspaceSid, String pathSid)static ActivityfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Activity object using the provided ObjectMapper.static ActivityfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Activity object using the provided ObjectMapper.StringgetAccountSid()BooleangetAvailable()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()Map<String,String>getLinks()StringgetSid()URIgetUrl()StringgetWorkspaceSid()inthashCode()static ActivityReaderreader(String pathWorkspaceSid)static ActivityUpdaterupdater(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()
-
-