public class Service extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Service.GeoMatchLevel |
static class |
Service.NumberSelectionBehavior |
| Modifier and Type | Method and 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 Account Sid..
|
URI |
getCallbackUrl()
Returns The URL Twilio will send callbacks to.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this Service was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this Service was updated.
|
Integer |
getDefaultTtl()
Returns The Default TTL for a Session, in seconds..
|
Service.GeoMatchLevel |
getGeoMatchLevel()
Returns The Whether to find proxy numbers in the same areacode..
|
URI |
getInterceptCallbackUrl()
Returns The A URL for Twilio call before each Interaction..
|
Map<String,String> |
getLinks()
Returns The Nested resource URLs..
|
Service.NumberSelectionBehavior |
getNumberSelectionBehavior()
Returns The What behavior to use when choosing a proxy number..
|
URI |
getOutOfSessionCallbackUrl()
Returns The A URL for Twilio call when a new Interaction has no Session..
|
String |
getSid()
Returns The A string that uniquely identifies this Service..
|
String |
getUniqueName()
Returns The A human readable description of this resource..
|
URI |
getUrl()
Returns The The URL of this 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.
|
public static ServiceFetcher fetcher(String pathSid)
pathSid - A string that uniquely identifies this Service.public static ServiceReader reader()
public static ServiceCreator creator(String uniqueName)
uniqueName - The human-readable string that uniquely identifies this
Service.public static ServiceDeleter deleter(String pathSid)
pathSid - A string that uniquely identifies this Service.public static ServiceUpdater updater(String pathSid)
pathSid - A string that uniquely identifies this Service.public static Service fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static Service fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON InputStreamobjectMapper - Jackson ObjectMapperpublic final String getSid()
public final String getUniqueName()
public final String getAccountSid()
public final URI getCallbackUrl()
public final Integer getDefaultTtl()
public final Service.NumberSelectionBehavior getNumberSelectionBehavior()
public final Service.GeoMatchLevel getGeoMatchLevel()
public final URI getInterceptCallbackUrl()
public final URI getOutOfSessionCallbackUrl()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2016 Twilio, Inc. All Rights Reserved.