Class UploadMediaItemRequest


  • public final class UploadMediaItemRequest
    extends java.lang.Object
    Represents an upload request.
    • Method Detail

      • getFileName

        public java.util.Optional<java.lang.String> getFileName()
        Returns the file name to be uploaded.
      • getMimeType

        public java.util.Optional<java.lang.String> getMimeType()
        Returns the mime type for the file to be uploaded.
      • getUploadUrl

        public java.util.Optional<java.lang.String> getUploadUrl()
        Returns the url where this file will be uploaded.
      • getChunkSize

        public int getChunkSize()
        Returns the chunk size where the file will be split.
      • getFileSize

        public long getFileSize()
                         throws java.io.IOException
        Returns the total size of the file.
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object