Package com.twilio.rest.proxy.v1
Class Service
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.proxy.v1.Service
-
- All Implemented Interfaces:
Serializable
public class Service extends Resource
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Service.GeoMatchLevel
static class
Service.NumberSelectionBehavior
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceCreator
creator(String uniqueName)
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 The SID of the Account that created the resource.URI
getCallbackUrl()
Returns The The URL we call when the interaction status changes.String
getChatInstanceSid()
Returns The The SID of the Chat Service Instance.org.joda.time.DateTime
getDateCreated()
Returns The The ISO 8601 date and time in GMT when the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The ISO 8601 date and time in GMT when the resource was last updated.Integer
getDefaultTtl()
Returns The Default TTL for a Session, in seconds.Service.GeoMatchLevel
getGeoMatchLevel()
Returns The Where a proxy number must be located relative to the participant identifier.URI
getInterceptCallbackUrl()
Returns The The URL we call on each interaction.Map<String,String>
getLinks()
Returns The The URLs of resources related to the Service.Service.NumberSelectionBehavior
getNumberSelectionBehavior()
Returns The The preference for Proxy Number selection for the Service instance.URI
getOutOfSessionCallbackUrl()
Returns The The URL we call when an inbound call or SMS action occurs on a closed or non-existent Session.String
getSid()
Returns The The unique string that identifies the resource.String
getUniqueName()
Returns The An application-defined string that uniquely identifies the resource.URI
getUrl()
Returns The The absolute URL of the Service resource.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
-
fetcher
public static ServiceFetcher fetcher(String pathSid)
Create a ServiceFetcher to execute fetch.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- ServiceFetcher capable of executing the fetch
-
reader
public static ServiceReader reader()
Create a ServiceReader to execute read.- Returns:
- ServiceReader capable of executing the read
-
creator
public static ServiceCreator creator(String uniqueName)
Create a ServiceCreator to execute create.- Parameters:
uniqueName
- An application-defined string that uniquely identifies the resource- Returns:
- ServiceCreator capable of executing the create
-
deleter
public static ServiceDeleter deleter(String pathSid)
Create a ServiceDeleter to execute delete.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- ServiceDeleter capable of executing the delete
-
updater
public static ServiceUpdater updater(String pathSid)
Create a ServiceUpdater to execute update.- Parameters:
pathSid
- The unique string that identifies the resource- 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 The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getUniqueName
public final String getUniqueName()
Returns The An application-defined string that uniquely identifies the resource.- Returns:
- An application-defined string that uniquely identifies the resource
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getChatInstanceSid
public final String getChatInstanceSid()
Returns The The SID of the Chat Service Instance.- Returns:
- The SID of the Chat Service Instance
-
getCallbackUrl
public final URI getCallbackUrl()
Returns The The URL we call when the interaction status changes.- Returns:
- The URL we call when the interaction status changes
-
getDefaultTtl
public final Integer getDefaultTtl()
Returns The Default TTL for a Session, in seconds.- Returns:
- Default TTL for a Session, in seconds
-
getNumberSelectionBehavior
public final Service.NumberSelectionBehavior getNumberSelectionBehavior()
Returns The The preference for Proxy Number selection for the Service instance.- Returns:
- The preference for Proxy Number selection for the Service instance
-
getGeoMatchLevel
public final Service.GeoMatchLevel getGeoMatchLevel()
Returns The Where a proxy number must be located relative to the participant identifier.- Returns:
- Where a proxy number must be located relative to the participant identifier
-
getInterceptCallbackUrl
public final URI getInterceptCallbackUrl()
Returns The The URL we call on each interaction.- Returns:
- The URL we call on each interaction
-
getOutOfSessionCallbackUrl
public final URI getOutOfSessionCallbackUrl()
Returns The The URL we call when an inbound call or SMS action occurs on a closed or non-existent Session.- Returns:
- The URL we call when an inbound call or SMS action occurs on a closed or non-existent Session
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The ISO 8601 date and time in GMT when the resource was created.- Returns:
- The ISO 8601 date and time in GMT when the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The ISO 8601 date and time in GMT when the resource was last updated.- Returns:
- The ISO 8601 date and time in GMT when the resource was last updated
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the Service resource.- Returns:
- The absolute URL of the Service resource
-
getLinks
public final Map<String,String> getLinks()
Returns The The URLs of resources related to the Service.- Returns:
- The URLs of resources related to the Service
-
-