Class Webhook

    • Method Detail

      • reader

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

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

        public static WebhookCreator creator​(String pathServiceSid,
                                             String pathChannelSid,
                                             Webhook.Type type)
        Create a WebhookCreator to execute create.
        Parameters:
        pathServiceSid - The SID of the Service to create the resource under
        pathChannelSid - The SID of the Channel the new resource belongs to
        type - The type of webhook
        Returns:
        WebhookCreator capable of executing the create
      • updater

        public static WebhookUpdater updater​(String pathServiceSid,
                                             String pathChannelSid,
                                             String pathSid)
        Create a WebhookUpdater to execute update.
        Parameters:
        pathServiceSid - The SID of the Service to update the resource from
        pathChannelSid - The SID of the Channel the resource to update belongs to
        pathSid - The unique string that identifies the resource
        Returns:
        WebhookUpdater capable of executing the update
      • deleter

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

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

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

        public final String getChannelSid()
        Returns The The SID of the Channel the ChannelWebhook resource belongs to.
        Returns:
        The SID of the Channel the ChannelWebhook resource belongs to
      • getType

        public final String getType()
        Returns The The type of webhook.
        Returns:
        The type of webhook
      • getUrl

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

        public final Map<String,​Object> getConfiguration()
        Returns The The JSON string that describes the configuration object for the channel webhook.
        Returns:
        The JSON string that describes the configuration object for the channel webhook
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object