Class Binding

  • All Implemented Interfaces:
    Serializable

    public class Binding
    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

      • 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
      • creator

        public static BindingCreator creator​(String pathServiceSid,
                                             String identity,
                                             Binding.BindingType bindingType,
                                             String address)
        Create a BindingCreator to execute create.
        Parameters:
        pathServiceSid - The SID of the Service to create the resource under
        identity - The `identity` value that identifies the new resource's User
        bindingType - The type of the Binding
        address - The channel-specific address
        Returns:
        BindingCreator capable of executing the create
      • reader

        public static BindingReader reader​(String pathServiceSid)
        Create a BindingReader to execute read.
        Parameters:
        pathServiceSid - The SID of the Service to read the resource from
        Returns:
        BindingReader capable of executing the read
      • 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
      • getCredentialSid

        public final String getCredentialSid()
        Returns The The SID of the Credential resource to be used to send notifications to this Binding.
        Returns:
        The SID of the Credential resource to be used to send notifications to this Binding
      • 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
      • getNotificationProtocolVersion

        public final String getNotificationProtocolVersion()
        Returns The The protocol version to use to send the notification.
        Returns:
        The protocol version to use to send the notification
      • getEndpoint

        public final String getEndpoint()
        Returns The Deprecated.
        Returns:
        Deprecated
      • getIdentity

        public final String getIdentity()
        Returns The The `identity` value that identifies the new resource's User.
        Returns:
        The `identity` value that identifies the new resource's User
      • getBindingType

        public final String getBindingType()
        Returns The The type of the Binding.
        Returns:
        The type of the Binding
      • getAddress

        public final String getAddress()
        Returns The The channel-specific address.
        Returns:
        The channel-specific address
      • getTags

        public final List<String> getTags()
        Returns The The list of tags associated with this Binding.
        Returns:
        The list of tags associated with this Binding
      • 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 URLs of related resources.
        Returns:
        The URLs of related resources
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object