Package com.twilio.rest.notify.v1
Class Service
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.notify.v1.Service
-
- All Implemented Interfaces:
Serializable
public class Service extends Resource
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 SID of the Account that created the resource.String
getAlexaSkillId()
Returns The Deprecated.String
getApnCredentialSid()
Returns The The SID of the Credential to use for APN Bindings.org.joda.time.DateTime
getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.String
getDefaultAlexaNotificationProtocolVersion()
Returns The Deprecated.String
getDefaultApnNotificationProtocolVersion()
Returns The The protocol version to use for sending APNS notifications.String
getDefaultFcmNotificationProtocolVersion()
Returns The The protocol version to use for sending FCM notifications.String
getDefaultGcmNotificationProtocolVersion()
Returns The The protocol version to use for sending GCM notifications.String
getFacebookMessengerPageId()
Returns The Deprecated.String
getFcmCredentialSid()
Returns The The SID of the Credential to use for FCM Bindings.String
getFriendlyName()
Returns The The string that you assigned to describe the resource.String
getGcmCredentialSid()
Returns The The SID of the Credential to use for GCM Bindings.Map<String,String>
getLinks()
Returns The The URLs of the resources related to the service.Boolean
getLogEnabled()
Returns The Whether to log notifications.String
getMessagingServiceSid()
Returns The The SID of the Messaging Service to use for SMS Bindings.String
getSid()
Returns The The unique string that identifies the resource.URI
getUrl()
Returns The The absolute URL of the Service 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.
-
-
-
Method Detail
-
creator
public static ServiceCreator creator()
Create a ServiceCreator to execute create.- Returns:
- ServiceCreator capable of executing the create
-
deleter
public static ServiceDeleter deleter(String pathSid)
Create a ServiceDeleter to execute delete.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- ServiceDeleter capable of executing the delete
-
fetcher
public static ServiceFetcher fetcher(String pathSid)
Create a ServiceFetcher to execute fetch.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- ServiceFetcher capable of executing the fetch
-
reader
public static ServiceReader reader()
Create a ServiceReader to execute read.- Returns:
- ServiceReader capable of executing the read
-
updater
public static ServiceUpdater updater(String pathSid)
Create a ServiceUpdater to execute update.- Parameters:
pathSid
- The unique string that identifies the resource- Returns:
- ServiceUpdater capable of executing the update
-
fromJson
public static Service fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Service object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Service object represented by the provided JSON
-
fromJson
public static Service fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Service object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Service object represented by the provided JSON
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getFriendlyName
public final String getFriendlyName()
Returns The The string that you assigned to describe the resource.- Returns:
- The string that you assigned to describe the resource
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.- Returns:
- The RFC 2822 date and time in GMT when the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.- Returns:
- The RFC 2822 date and time in GMT when the resource was last updated
-
getApnCredentialSid
public final String getApnCredentialSid()
Returns The The SID of the Credential to use for APN Bindings.- Returns:
- The SID of the Credential to use for APN Bindings
-
getGcmCredentialSid
public final String getGcmCredentialSid()
Returns The The SID of the Credential to use for GCM Bindings.- Returns:
- The SID of the Credential to use for GCM Bindings
-
getFcmCredentialSid
public final String getFcmCredentialSid()
Returns The The SID of the Credential to use for FCM Bindings.- Returns:
- The SID of the Credential to use for FCM Bindings
-
getMessagingServiceSid
public final String getMessagingServiceSid()
Returns The The SID of the Messaging Service to use for SMS Bindings.- Returns:
- The SID of the Messaging Service to use for SMS Bindings
-
getFacebookMessengerPageId
public final String getFacebookMessengerPageId()
Returns The Deprecated.- Returns:
- Deprecated
-
getDefaultApnNotificationProtocolVersion
public final String getDefaultApnNotificationProtocolVersion()
Returns The The protocol version to use for sending APNS notifications.- Returns:
- The protocol version to use for sending APNS notifications
-
getDefaultGcmNotificationProtocolVersion
public final String getDefaultGcmNotificationProtocolVersion()
Returns The The protocol version to use for sending GCM notifications.- Returns:
- The protocol version to use for sending GCM notifications
-
getDefaultFcmNotificationProtocolVersion
public final String getDefaultFcmNotificationProtocolVersion()
Returns The The protocol version to use for sending FCM notifications.- Returns:
- The protocol version to use for sending FCM notifications
-
getLogEnabled
public final Boolean getLogEnabled()
Returns The Whether to log notifications.- Returns:
- Whether to log notifications
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the Service resource.- Returns:
- The absolute URL of the Service resource
-
getLinks
public final Map<String,String> getLinks()
Returns The The URLs of the resources related to the service.- Returns:
- The URLs of the resources related to the service
-
getAlexaSkillId
public final String getAlexaSkillId()
Returns The Deprecated.- Returns:
- Deprecated
-
getDefaultAlexaNotificationProtocolVersion
public final String getDefaultAlexaNotificationProtocolVersion()
Returns The Deprecated.- Returns:
- Deprecated
-
-