Package com.twilio.rest.serverless.v1
Class Service
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.serverless.v1.Service
-
- All Implemented Interfaces:
Serializable
public class Service 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 ServiceCreator
creator(String uniqueName, String friendlyName)
Create a ServiceCreator to execute create.static ServiceDeleter
deleter(String pathSid)
Create a ServiceDeleter to execute delete.boolean
equals(Object o)
static ServiceFetcher
fetcher(String pathSid)
Create a ServiceFetcher to execute fetch.static Service
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Service object using the provided ObjectMapper.static Service
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Service object using the provided ObjectMapper.String
getAccountSid()
Returns The Account Sid..org.joda.time.DateTime
getDateCreated()
Returns The The date that this Service was created..org.joda.time.DateTime
getDateUpdated()
Returns The The date that this Service was updated..String
getFriendlyName()
Returns The A human-readable description of this Service..Boolean
getIncludeCredentials()
Returns The Whether to inject Account credentials into a Function invocation context..Map<String,String>
getLinks()
Returns The Nested resource URLs..String
getSid()
Returns The Service Sid..String
getUniqueName()
Returns The A unique, URL-friendly name of this Service..URI
getUrl()
Returns The The URL of this Service..int
hashCode()
static ServiceReader
reader()
Create a ServiceReader to execute read.String
toString()
static ServiceUpdater
updater(String pathSid)
Create a ServiceUpdater to execute update.
-
-
-
Method Detail
-
reader
public static ServiceReader reader()
Create a ServiceReader to execute read.- Returns:
- ServiceReader capable of executing the read
-
fetcher
public static ServiceFetcher fetcher(String pathSid)
Create a ServiceFetcher to execute fetch.- Parameters:
pathSid
- Serverless Service Sid or unique name.- Returns:
- ServiceFetcher capable of executing the fetch
-
deleter
public static ServiceDeleter deleter(String pathSid)
Create a ServiceDeleter to execute delete.- Parameters:
pathSid
- Serverless Service Sid or unique name.- Returns:
- ServiceDeleter capable of executing the delete
-
creator
public static ServiceCreator creator(String uniqueName, String friendlyName)
Create a ServiceCreator to execute create.- Parameters:
uniqueName
- A unique, addressable name of this Service.friendlyName
- A human-readable description of this Service.- Returns:
- ServiceCreator capable of executing the create
-
updater
public static ServiceUpdater updater(String pathSid)
Create a ServiceUpdater to execute update.- Parameters:
pathSid
- Service Sid.- Returns:
- ServiceUpdater capable of executing the update
-
fromJson
public static Service fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Service object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Service object represented by the provided JSON
-
fromJson
public static Service fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Service object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Service object represented by the provided JSON
-
getSid
public final String getSid()
Returns The Service Sid..- Returns:
- Service Sid.
-
getAccountSid
public final String getAccountSid()
Returns The Account Sid..- Returns:
- Account Sid.
-
getFriendlyName
public final String getFriendlyName()
Returns The A human-readable description of this Service..- Returns:
- A human-readable description of this Service.
-
getUniqueName
public final String getUniqueName()
Returns The A unique, URL-friendly name of this Service..- Returns:
- A unique, URL-friendly name of this Service.
-
getIncludeCredentials
public final Boolean getIncludeCredentials()
Returns The Whether to inject Account credentials into a Function invocation context..- Returns:
- Whether to inject Account credentials into a Function invocation context.
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The date that this Service was created..- Returns:
- The date that this Service was created.
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The date that this Service was updated..- Returns:
- The date that this Service was updated.
-
getUrl
public final URI getUrl()
Returns The The URL of this Service..- Returns:
- The URL of this Service.
-
getLinks
public final Map<String,String> getLinks()
Returns The Nested resource URLs..- Returns:
- Nested resource URLs.
-
-