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 FunctionCreator
creator(String pathServiceSid, String friendlyName)
static FunctionDeleter
deleter(String pathServiceSid, String pathSid)
boolean
equals(Object o)
static FunctionFetcher
fetcher(String pathServiceSid, String pathSid)
static Function
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Function object using the provided ObjectMapper.static Function
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Function object using the provided ObjectMapper.String
getAccountSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
Map<String,String>
getLinks()
String
getServiceSid()
String
getSid()
URI
getUrl()
int
hashCode()
static FunctionReader
reader(String pathServiceSid)
static FunctionUpdater
updater(String pathServiceSid, String pathSid, String friendlyName)
-
-
-
Method Detail
-
creator
public static FunctionCreator creator(String pathServiceSid, String friendlyName)
-
deleter
public static FunctionDeleter deleter(String pathServiceSid, String pathSid)
-
fetcher
public static FunctionFetcher fetcher(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()
-
-