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 SID of the Account that created the resource.
|
URI |
getCallbackUrl()
Returns The URL we call when the interaction status changes.
|
String |
getChatInstanceSid()
Returns The SID of the Chat Service Instance.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
Integer |
getDefaultTtl()
Returns Default TTL for a Session, in seconds.
|
Service.GeoMatchLevel |
getGeoMatchLevel()
Returns Where a proxy number must be located relative to the participant
identifier.
|
URI |
getInterceptCallbackUrl()
Returns The URL we call on each interaction.
|
Map<String,String> |
getLinks()
Returns The URLs of resources related to the Service.
|
Service.NumberSelectionBehavior |
getNumberSelectionBehavior()
Returns The preference for Proxy Number selection for the Service instance.
|
URI |
getOutOfSessionCallbackUrl()
Returns The URL we call when an inbound call or SMS action occurs on a closed
or non-existent Session.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getUniqueName()
Returns An application-defined string that uniquely identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the Service resource.
|
int |
hashCode() |
static ServiceReader |
reader()
Create a ServiceReader to execute read.
|
static ServiceUpdater |
updater(String pathSid)
Create a ServiceUpdater to execute update.
|
public static ServiceFetcher fetcher(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static ServiceReader reader()
public static ServiceCreator creator(String uniqueName)
uniqueName
- An application-defined string that uniquely identifies the
resourcepublic static ServiceDeleter deleter(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static ServiceUpdater updater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic 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 String getChatInstanceSid()
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 ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.