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 SID of the Account that created the resource.
|
String |
getAlexaSkillId()
Returns Deprecated.
|
String |
getApnCredentialSid()
Returns The SID of the Credential to use for APN Bindings.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
String |
getDefaultAlexaNotificationProtocolVersion()
Returns Deprecated.
|
String |
getDefaultApnNotificationProtocolVersion()
Returns The protocol version to use for sending APNS notifications.
|
String |
getDefaultFcmNotificationProtocolVersion()
Returns The protocol version to use for sending FCM notifications.
|
String |
getDefaultGcmNotificationProtocolVersion()
Returns The protocol version to use for sending GCM notifications.
|
Boolean |
getDeliveryCallbackEnabled()
Returns Enable delivery callbacks.
|
String |
getDeliveryCallbackUrl()
Returns Webhook URL.
|
String |
getFacebookMessengerPageId()
Returns Deprecated.
|
String |
getFcmCredentialSid()
Returns The SID of the Credential to use for FCM Bindings.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
String |
getGcmCredentialSid()
Returns The SID of the Credential to use for GCM Bindings.
|
Map<String,String> |
getLinks()
Returns The URLs of the resources related to the service.
|
Boolean |
getLogEnabled()
Returns Whether to log notifications.
|
String |
getMessagingServiceSid()
Returns The SID of the Messaging Service to use for SMS Bindings.
|
String |
getSid()
Returns The unique string that 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 ServiceCreator creator()
public static ServiceDeleter deleter(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static ServiceFetcher fetcher(String pathSid)
pathSid
- The unique string that identifies the resourcepublic static ServiceReader reader()
public 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 getAccountSid()
public final String getFriendlyName()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime 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 Map<String,String> getLinks()
public final String getAlexaSkillId()
public final String getDefaultAlexaNotificationProtocolVersion()
public final String getDeliveryCallbackUrl()
public final Boolean getDeliveryCallbackEnabled()
Copyright © 2019 Twilio, Inc. All Rights Reserved.