Class Url


  • public class Url
    extends Object
    Url
    • Constructor Detail

      • Url

        public Url()
    • Method Detail

      • encrypted

        public Url encrypted​(Boolean encrypted)
      • getEncrypted

        public Boolean getEncrypted()
        Indicates if the message sent to this URL should be encrypted.
        Returns:
        encrypted
      • setEncrypted

        public void setEncrypted​(Boolean encrypted)
        Indicates if the message sent to this URL should be encrypted.
        Parameters:
        encrypted -
      • password

        public Url password​(String password)
      • getPassword

        public String getPassword()
        The password for authentication of the notifications.
        Returns:
        password
      • setPassword

        public void setPassword​(String password)
        The password for authentication of the notifications.
        Parameters:
        password -
      • getUrl

        public String getUrl()
        The URL in the format: http(s)://domain.com.
        Returns:
        url
      • setUrl

        public void setUrl​(String url)
        The URL in the format: http(s)://domain.com.
        Parameters:
        url -
      • username

        public Url username​(String username)
      • getUsername

        public String getUsername()
        The username for authentication of the notifications.
        Returns:
        username
      • setUsername

        public void setUsername​(String username)
        The username for authentication of the notifications.
        Parameters:
        username -
      • equals

        public boolean equals​(Object o)
        Return true if this Url object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static Url fromJson​(String jsonString)
                            throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Url given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Url
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Url
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Url to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException