Class Notification

    • Method Detail

      • fetcher

        public static NotificationFetcher fetcher​(String pathAccountSid,
                                                  String pathCallSid,
                                                  String pathSid)
        Create a NotificationFetcher to execute fetch.
        Parameters:
        pathAccountSid - The SID of the Account that created the resource to fetch
        pathCallSid - The Call SID of the resource to fetch
        pathSid - The unique string that identifies the resource
        Returns:
        NotificationFetcher capable of executing the fetch
      • fetcher

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

        public static NotificationDeleter deleter​(String pathAccountSid,
                                                  String pathCallSid,
                                                  String pathSid)
        Create a NotificationDeleter to execute delete.
        Parameters:
        pathAccountSid - The SID of the Account that created the resources to delete
        pathCallSid - The Call SID of the resources to delete
        pathSid - The unique string that identifies the resource
        Returns:
        NotificationDeleter capable of executing the delete
      • deleter

        public static NotificationDeleter deleter​(String pathCallSid,
                                                  String pathSid)
        Create a NotificationDeleter to execute delete.
        Parameters:
        pathCallSid - The Call SID of the resources to delete
        pathSid - The unique string that identifies the resource
        Returns:
        NotificationDeleter capable of executing the delete
      • reader

        public static NotificationReader reader​(String pathAccountSid,
                                                String pathCallSid)
        Create a NotificationReader to execute read.
        Parameters:
        pathAccountSid - The SID of the Account that created the resources to read
        pathCallSid - The Call SID of the resources to read
        Returns:
        NotificationReader capable of executing the read
      • reader

        public static NotificationReader reader​(String pathCallSid)
        Create a NotificationReader to execute read.
        Parameters:
        pathCallSid - The Call SID of the resources to read
        Returns:
        NotificationReader capable of executing the read
      • fromJson

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

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

        public final String getApiVersion()
        Returns The The API version used to create the Call Notification resource.
        Returns:
        The API version used to create the Call Notification resource
      • getCallSid

        public final String getCallSid()
        Returns The The SID of the Call the resource is associated with.
        Returns:
        The SID of the Call the resource is associated with
      • getDateCreated

        public final org.joda.time.DateTime getDateCreated()
        Returns The The RFC 2822 date and time in GMT that the resource was created.
        Returns:
        The RFC 2822 date and time in GMT that the resource was created
      • getDateUpdated

        public final org.joda.time.DateTime getDateUpdated()
        Returns The The RFC 2822 date and time in GMT that the resource was last updated.
        Returns:
        The RFC 2822 date and time in GMT that the resource was last updated
      • getErrorCode

        public final String getErrorCode()
        Returns The A unique error code corresponding to the notification.
        Returns:
        A unique error code corresponding to the notification
      • getLog

        public final String getLog()
        Returns The An integer log level.
        Returns:
        An integer log level
      • getMessageDate

        public final org.joda.time.DateTime getMessageDate()
        Returns The The date the notification was generated.
        Returns:
        The date the notification was generated
      • getMessageText

        public final String getMessageText()
        Returns The The text of the notification.
        Returns:
        The text of the notification
      • getMoreInfo

        public final URI getMoreInfo()
        Returns The A URL for more information about the error code.
        Returns:
        A URL for more information about the error code
      • getRequestMethod

        public final HttpMethod getRequestMethod()
        Returns The HTTP method used with the request url.
        Returns:
        HTTP method used with the request url
      • getRequestUrl

        public final URI getRequestUrl()
        Returns The URL of the resource that generated the notification.
        Returns:
        URL of the resource that generated the notification
      • getRequestVariables

        public final String getRequestVariables()
        Returns The Twilio-generated HTTP variables sent to the server.
        Returns:
        Twilio-generated HTTP variables sent to the server
      • getResponseBody

        public final String getResponseBody()
        Returns The The HTTP body returned by your server.
        Returns:
        The HTTP body returned by your server
      • getResponseHeaders

        public final String getResponseHeaders()
        Returns The The HTTP headers returned by your server.
        Returns:
        The HTTP headers returned by your server
      • getSid

        public final String getSid()
        Returns The The unique string that identifies the resource.
        Returns:
        The unique string that identifies the resource
      • getUri

        public final String getUri()
        Returns The The URI of the resource, relative to `https://api.twilio.com`.
        Returns:
        The URI of the resource, relative to `https://api.twilio.com`
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object