Class NotificationUrl


  • public class NotificationUrl
    extends Object
    NotificationUrl
    • Constructor Detail

      • NotificationUrl

        public NotificationUrl()
    • Method Detail

      • getLocalUrls

        public List<Url> getLocalUrls()
        One or more local URLs to send notifications to when using Terminal API.
        Returns:
        localUrls
      • setLocalUrls

        public void setLocalUrls​(List<Url> localUrls)
      • getPublicUrls

        public List<Url> getPublicUrls()
        One or more public URLs to send notifications to when using Terminal API.
        Returns:
        publicUrls
      • setPublicUrls

        public void setPublicUrls​(List<Url> publicUrls)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to NotificationUrl
      • fromJson

        public static NotificationUrl fromJson​(String jsonString)
                                        throws IOException
        Create an instance of NotificationUrl given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of NotificationUrl
        Throws:
        IOException - if the JSON string is invalid with respect to NotificationUrl
      • toJson

        public String toJson()
        Convert an instance of NotificationUrl to an JSON string
        Returns:
        JSON string