Class Link


  • public class Link
    extends Object
    Link
    • Constructor Detail

      • Link

        public Link()
    • Method Detail

      • getHref

        public String getHref()
        The link to the resource.
        Returns:
        href
      • setHref

        public void setHref​(String href)
        The link to the resource.
        Parameters:
        href -
      • equals

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

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

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

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