Class Binding

    • Method Detail

      • reader

        public static BindingReader reader​(String pathServiceSid)
        Create a BindingReader to execute read.
        Parameters:
        pathServiceSid - The SID of the Service to read the resources from
        Returns:
        BindingReader capable of executing the read
      • fetcher

        public static BindingFetcher fetcher​(String pathServiceSid,
                                             String pathSid)
        Create a BindingFetcher to execute fetch.
        Parameters:
        pathServiceSid - The SID of the Service to fetch the resource from
        pathSid - The unique string that identifies the resource
        Returns:
        BindingFetcher capable of executing the fetch
      • deleter

        public static BindingDeleter deleter​(String pathServiceSid,
                                             String pathSid)
        Create a BindingDeleter to execute delete.
        Parameters:
        pathServiceSid - The SID of the Service to delete the resource from
        pathSid - The unique string that identifies the resource
        Returns:
        BindingDeleter capable of executing the delete
      • fromJson

        public static Binding fromJson​(String json,
                                       com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a Binding object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        Binding object represented by the provided JSON
      • fromJson

        public static Binding fromJson​(InputStream json,
                                       com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Binding object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Binding 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
      • getServiceSid

        public final String getServiceSid()
        Returns The The SID of the Service that the resource is associated with.
        Returns:
        The SID of the Service that the resource is associated with
      • 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
      • getEndpoint

        public final String getEndpoint()
        Returns The The unique endpoint identifier for the Binding.
        Returns:
        The unique endpoint identifier for the Binding
      • getIdentity

        public final String getIdentity()
        Returns The The string that identifies the resource's User.
        Returns:
        The string that identifies the resource's User
      • getCredentialSid

        public final String getCredentialSid()
        Returns The The SID of the Credential for the binding.
        Returns:
        The SID of the Credential for the binding
      • getBindingType

        public final Binding.BindingType getBindingType()
        Returns The The push technology to use for the binding.
        Returns:
        The push technology to use for the binding
      • getMessageTypes

        public final List<String> getMessageTypes()
        Returns The The Programmable Chat message types the binding is subscribed to.
        Returns:
        The Programmable Chat message types the binding is subscribed to
      • getUrl

        public final URI getUrl()
        Returns The The absolute URL of the Binding resource.
        Returns:
        The absolute URL of the Binding resource
      • getLinks

        public final Map<String,​String> getLinks()
        Returns The The absolute URLs of the Users for the Binding.
        Returns:
        The absolute URLs of the Users for the Binding
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object