Class FileAttribute


  • public final class FileAttribute
    extends java.lang.Object
    • Method Detail

      • getType

        public java.util.Optional<java.lang.String> getType()
      • getName

        public java.util.Optional<java.lang.String> getName()
        Returns:
        The name of the file
      • getUrl

        public java.util.Optional<java.lang.String> getUrl()
        Returns:
        The url of the file. This is a temporary URL and will expire after 30 minutes.
      • getContentType

        public java.util.Optional<java.lang.String> getContentType()
        Returns:
        The type of file
      • getFilesize

        public java.util.Optional<java.lang.Integer> getFilesize()
        Returns:
        The size of the file in bytes
      • getWidth

        public java.util.Optional<java.lang.Integer> getWidth()
        Returns:
        The width of the file in pixels, if applicable
      • getHeight

        public java.util.Optional<java.lang.Integer> getHeight()
        Returns:
        The height of the file in pixels, if applicable
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object