Class FileInfo


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.8.0")
    public class FileInfo
    extends Object
    FileInfo
    • Constructor Detail

      • FileInfo

        public FileInfo()
    • Method Detail

      • getFileName

        @Nullable
        public String getFileName()
        Get fileName
        Returns:
        fileName
      • setFileName

        public void setFileName​(String fileName)
      • getFileSize

        @Nullable
        public Integer getFileSize()
        Get fileSize
        Returns:
        fileSize
      • setFileSize

        public void setFileSize​(Integer fileSize)
      • getContentType

        @Nullable
        public String getContentType()
        Get contentType
        Returns:
        contentType
      • setContentType

        public void setContentType​(String contentType)
      • getExtension

        @Nullable
        public String getExtension()
        Get extension
        Returns:
        extension
      • setExtension

        public void setExtension​(String extension)
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to FileInfo
      • fromJson

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

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