Class AnimatedGif


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

      • AnimatedGif

        public AnimatedGif()
    • Method Detail

      • previewImageUrl

        public AnimatedGif previewImageUrl​(URL previewImageUrl)
      • getPreviewImageUrl

        @Nullable
        public URL getPreviewImageUrl()
        Get previewImageUrl
        Returns:
        previewImageUrl
      • setPreviewImageUrl

        public void setPreviewImageUrl​(URL previewImageUrl)
      • getVariants

        @Nullable
        public List<Variant> getVariants()
        An array of all available variants of the media.
        Returns:
        variants
      • setVariants

        public void setVariants​(List<Variant> variants)
      • 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 AnimatedGif
      • fromJson

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

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