Class Photo


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Photo
    extends Media
    Photo
    • Constructor Detail

      • Photo

        public Photo()
    • Method Detail

      • getAltText

        @Nullable
        public String getAltText()
        Get altText
        Returns:
        altText
      • setAltText

        public void setAltText​(String altText)
      • getUrl

        @Nullable
        public URL getUrl()
        Get url
        Returns:
        url
      • setUrl

        public void setUrl​(URL url)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Media
      • 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 Photo
      • fromJson

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

        public String toJson()
        Convert an instance of Photo to an JSON string
        Overrides:
        toJson in class Media
        Returns:
        JSON string