Class Function
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.serverless.v1.service.Function
-
- All Implemented Interfaces:
Serializable
public class Function extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionCreatorcreator(String pathServiceSid, String friendlyName)static FunctionDeleterdeleter(String pathServiceSid, String pathSid)booleanequals(Object o)static FunctionFetcherfetcher(String pathServiceSid, String pathSid)static FunctionfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Function object using the provided ObjectMapper.static FunctionfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Function object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()Map<String,String>getLinks()StringgetServiceSid()StringgetSid()URIgetUrl()inthashCode()static FunctionReaderreader(String pathServiceSid)static FunctionUpdaterupdater(String pathServiceSid, String pathSid, String friendlyName)
-
-
-
Method Detail
-
creator
public static FunctionCreator creator(String pathServiceSid, String friendlyName)
-
fetcher
public static FunctionFetcher fetcher(String pathServiceSid, String pathSid)
-
deleter
public static FunctionDeleter deleter(String pathServiceSid, String pathSid)
-
reader
public static FunctionReader reader(String pathServiceSid)
-
updater
public static FunctionUpdater updater(String pathServiceSid, String pathSid, String friendlyName)
-
fromJson
public static Function fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Function object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Function object represented by the provided JSON
-
fromJson
public static Function fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Function object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Function object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getFriendlyName
public final String getFriendlyName()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-