Class URLImage


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class URLImage
    extends Object
    Represent the information for the URL image
    • Constructor Detail

      • URLImage

        public URLImage()
    • Method Detail

      • getUrl

        @Nullable
        public URI getUrl()
        A validly formatted URL.
        Returns:
        url
      • setUrl

        public void setUrl​(URI url)
      • getHeight

        @Nullable
        public Integer getHeight()
        The height of the media in pixels minimum: 0
        Returns:
        height
      • setHeight

        public void setHeight​(Integer height)
      • getWidth

        @Nullable
        public Integer getWidth()
        The width of the media in pixels minimum: 0
        Returns:
        width
      • setWidth

        public void setWidth​(Integer width)
      • 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 URLImage
      • fromJson

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

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