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

      • getHeight

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

        public void setHeight​(Integer height)
      • getUrl

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

        public void setUrl​(URL url)
      • 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