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
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].- 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)
Create a FunctionCreator to execute create.static FunctionDeleter
deleter(String pathServiceSid, String pathSid)
Create a FunctionDeleter to execute delete.boolean
equals(Object o)
static FunctionFetcher
fetcher(String pathServiceSid, String pathSid)
Create a FunctionFetcher to execute fetch.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()
Returns The Account Sid..org.joda.time.DateTime
getDateCreated()
Returns The The date that this Function was created..org.joda.time.DateTime
getDateUpdated()
Returns The The date that this Function was updated..String
getFriendlyName()
Returns The A human-readable description of this Function..Map<String,String>
getLinks()
Returns The Nested resource URLs..String
getServiceSid()
Returns The Service Sid..String
getSid()
Returns The Function Sid..URI
getUrl()
Returns The The URL of this Function..int
hashCode()
static FunctionReader
reader(String pathServiceSid)
Create a FunctionReader to execute read.String
toString()
static FunctionUpdater
updater(String pathServiceSid, String pathSid, String friendlyName)
Create a FunctionUpdater to execute update.
-
-
-
Method Detail
-
reader
public static FunctionReader reader(String pathServiceSid)
Create a FunctionReader to execute read.- Parameters:
pathServiceSid
- Service Sid.- Returns:
- FunctionReader capable of executing the read
-
fetcher
public static FunctionFetcher fetcher(String pathServiceSid, String pathSid)
Create a FunctionFetcher to execute fetch.- Parameters:
pathServiceSid
- Service Sid.pathSid
- Function Sid.- Returns:
- FunctionFetcher capable of executing the fetch
-
deleter
public static FunctionDeleter deleter(String pathServiceSid, String pathSid)
Create a FunctionDeleter to execute delete.- Parameters:
pathServiceSid
- Service Sid.pathSid
- Function Sid.- Returns:
- FunctionDeleter capable of executing the delete
-
creator
public static FunctionCreator creator(String pathServiceSid, String friendlyName)
Create a FunctionCreator to execute create.- Parameters:
pathServiceSid
- Service Sid.friendlyName
- A human-readable description of this Function.- Returns:
- FunctionCreator capable of executing the create
-
updater
public static FunctionUpdater updater(String pathServiceSid, String pathSid, String friendlyName)
Create a FunctionUpdater to execute update.- Parameters:
pathServiceSid
- Service Sid.pathSid
- Function Sid.friendlyName
- A human-readable description of this Function.- Returns:
- FunctionUpdater capable of executing the update
-
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()
Returns The Function Sid..- Returns:
- Function Sid.
-
getAccountSid
public final String getAccountSid()
Returns The Account Sid..- Returns:
- Account Sid.
-
getServiceSid
public final String getServiceSid()
Returns The Service Sid..- Returns:
- Service Sid.
-
getFriendlyName
public final String getFriendlyName()
Returns The A human-readable description of this Function..- Returns:
- A human-readable description of this Function.
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The date that this Function was created..- Returns:
- The date that this Function was created.
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The date that this Function was updated..- Returns:
- The date that this Function was updated.
-
getUrl
public final URI getUrl()
Returns The The URL of this Function..- Returns:
- The URL of this Function.
-
getLinks
public final Map<String,String> getLinks()
Returns The Nested resource URLs..- Returns:
- Nested resource URLs.
-
-