Class 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 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 String
        objectMapper - 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 InputStream
        objectMapper - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object