Class FileInfo

java.lang.Object
com.boldsign.model.FileInfo

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

  • Constructor Details

    • FileInfo

      public FileInfo()
  • Method Details

    • fileName

      public FileInfo fileName(String fileName)
    • getFileName

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

      public void setFileName(String fileName)
    • fileSize

      public FileInfo fileSize(Integer fileSize)
    • getFileSize

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

      public void setFileSize(Integer fileSize)
    • contentType

      public FileInfo contentType(String contentType)
    • getContentType

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

      public void setContentType(String contentType)
    • extension

      public FileInfo extension(String extension)
    • getExtension

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

      public void setExtension(String extension)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • createFormData

      public Map<String,Object> createFormData() throws ApiException
      Throws:
      ApiException
    • 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