public class Service extends Resource
Modifier and Type | Method and Description |
---|---|
static ServiceCreator |
creator()
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.
|
String |
getAlexaSkillId()
Returns The The alexa_skill_id.
|
String |
getApnCredentialSid()
Returns The The SID of the Credential to be used for APN Bindings..
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getDefaultAlexaNotificationProtocolVersion()
Returns The The default_alexa_notification_protocol_version.
|
String |
getDefaultApnNotificationProtocolVersion()
Returns The The version of the protocol to be used for sending APNS
notifications..
|
String |
getDefaultFcmNotificationProtocolVersion()
Returns The The version of the protocol to be used for sending FCM
notifications..
|
String |
getDefaultGcmNotificationProtocolVersion()
Returns The The version of the protocol to be used for sending GCM
notifications..
|
String |
getFacebookMessengerPageId()
Returns The The Page ID to be used to send for Facebook Messenger Bindings..
|
String |
getFcmCredentialSid()
Returns The The SID of the Credential to be used for FCM Bindings..
|
String |
getFriendlyName()
Returns The Human-readable name for this service instance.
|
String |
getGcmCredentialSid()
Returns The The SID of the Credential to be used for GCM Bindings..
|
Map<String,String> |
getLinks()
Returns The The links.
|
Boolean |
getLogEnabled()
Returns The The log_enabled.
|
String |
getMessagingServiceSid()
Returns The The SID of the Messaging Service to be used for SMS Bindings..
|
String |
getSid()
Returns The The sid.
|
URI |
getUrl()
Returns The The url.
|
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 ServiceCreator creator()
public static ServiceDeleter deleter(String pathSid)
pathSid
- The sidpublic static ServiceFetcher fetcher(String pathSid)
pathSid
- The sidpublic 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 getApnCredentialSid()
public final String getGcmCredentialSid()
public final String getFcmCredentialSid()
public final String getMessagingServiceSid()
public final String getFacebookMessengerPageId()
public final String getDefaultApnNotificationProtocolVersion()
public final String getDefaultGcmNotificationProtocolVersion()
public final String getDefaultFcmNotificationProtocolVersion()
public final Boolean getLogEnabled()
public final URI getUrl()
public final String getAlexaSkillId()
public final String getDefaultAlexaNotificationProtocolVersion()
Copyright © 2016 Twilio, Inc. All Rights Reserved.