Class Service

  • All Implemented Interfaces:
    Serializable

    public class Service
    extends Resource
    PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
    See Also:
    Serialized Form
    • Method Detail

      • creator

        public static ServiceCreator creator​(String friendlyName)
        Create a ServiceCreator to execute create.
        Parameters:
        friendlyName - A human readable description of this resource.
        Returns:
        ServiceCreator capable of executing the create
      • deleter

        public static ServiceDeleter deleter​(String pathSid)
        Create a ServiceDeleter to execute delete.
        Parameters:
        pathSid - A string that uniquely identifies this Service.
        Returns:
        ServiceDeleter capable of executing the delete
      • fetcher

        public static ServiceFetcher fetcher​(String pathSid)
        Create a ServiceFetcher to execute fetch.
        Parameters:
        pathSid - A string that uniquely identifies this Service.
        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 - A string that uniquely identifies this Service.
        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 A string that uniquely identifies this Service..
        Returns:
        A string that uniquely identifies this Service.
      • getFriendlyName

        public final String getFriendlyName()
        Returns The A human readable description of this resource..
        Returns:
        A human readable description of this resource.
      • getAccountSid

        public final String getAccountSid()
        Returns The Account Sid..
        Returns:
        Account Sid.
      • getDateCreated

        public final org.joda.time.DateTime getDateCreated()
        Returns The The date this Service was created.
        Returns:
        The date this Service was created
      • getDateUpdated

        public final org.joda.time.DateTime getDateUpdated()
        Returns The The date this Service was updated.
        Returns:
        The date this Service was updated
      • getUrl

        public final URI getUrl()
        Returns The The URL of this resource..
        Returns:
        The URL of this resource.
      • getLinks

        public final Map<String,​String> getLinks()
        Returns The Nested resource URLs..
        Returns:
        Nested resource URLs.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object