public class Service extends Resource
| Modifier and Type | Method and Description |
|---|---|
static ServiceCreator |
creator(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 The account_sid.
|
Integer |
getConsumptionReportInterval()
Returns The The consumption_report_interval.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getDefaultChannelCreatorRoleSid()
Returns The The default_channel_creator_role_sid.
|
String |
getDefaultChannelRoleSid()
Returns The The default_channel_role_sid.
|
String |
getDefaultServiceRoleSid()
Returns The The default_service_role_sid.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
Map<String,Object> |
getLimits()
Returns The The limits.
|
Map<String,String> |
getLinks()
Returns The The links.
|
Map<String,Object> |
getMedia()
Returns The The media.
|
Map<String,Object> |
getNotifications()
Returns The The notifications.
|
Integer |
getPostWebhookRetryCount()
Returns The The post_webhook_retry_count.
|
String |
getPostWebhookUrl()
Returns The The post_webhook_url.
|
Integer |
getPreWebhookRetryCount()
Returns The The pre_webhook_retry_count.
|
String |
getPreWebhookUrl()
Returns The The pre_webhook_url.
|
Boolean |
getReachabilityEnabled()
Returns The The reachability_enabled.
|
Boolean |
getReadStatusEnabled()
Returns The The read_status_enabled.
|
String |
getSid()
Returns The The sid.
|
Integer |
getTypingIndicatorTimeout()
Returns The The typing_indicator_timeout.
|
URI |
getUrl()
Returns The The url.
|
List<String> |
getWebhookFilters()
Returns The The webhook_filters.
|
String |
getWebhookMethod()
Returns The The webhook_method.
|
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 - The sidpublic static ServiceDeleter deleter(String pathSid)
pathSid - The sidpublic static ServiceCreator creator(String friendlyName)
friendlyName - The friendly_namepublic static ServiceReader reader()
public static ServiceUpdater updater(String pathSid)
pathSid - The sidpublic 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 getAccountSid()
public final String getFriendlyName()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getDefaultServiceRoleSid()
public final String getDefaultChannelRoleSid()
public final String getDefaultChannelCreatorRoleSid()
public final Boolean getReadStatusEnabled()
public final Boolean getReachabilityEnabled()
public final Integer getTypingIndicatorTimeout()
public final Integer getConsumptionReportInterval()
public final String getPreWebhookUrl()
public final String getPostWebhookUrl()
public final String getWebhookMethod()
public final List<String> getWebhookFilters()
public final Integer getPreWebhookRetryCount()
public final Integer getPostWebhookRetryCount()
public final Map<String,Object> getNotifications()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.