Class File


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

      • getId

        public java.util.Optional<java.lang.String> getId()
      • getRemoteId

        public java.util.Optional<java.lang.String> getRemoteId()
        Returns:
        The third-party API ID of the matching object.
      • getCreatedAt

        public java.util.Optional<java.time.OffsetDateTime> getCreatedAt()
        Returns:
        The datetime that this object was created by Merge.
      • getModifiedAt

        public java.util.Optional<java.time.OffsetDateTime> getModifiedAt()
        Returns:
        The datetime that this object was modified by Merge.
      • getName

        public java.util.Optional<java.lang.String> getName()
        Returns:
        The file's name.
      • getFileUrl

        public java.util.Optional<java.lang.String> getFileUrl()
        Returns:
        The URL to access the file.
      • getFileThumbnailUrl

        public java.util.Optional<java.lang.String> getFileThumbnailUrl()
        Returns:
        The URL that produces a thumbnail preview of the file. Typically an image.
      • getSize

        public java.util.Optional<java.lang.Long> getSize()
        Returns:
        The file's size, in bytes.
      • getMimeType

        public java.util.Optional<java.lang.String> getMimeType()
        Returns:
        The file's mime type.
      • getDescription

        public java.util.Optional<java.lang.String> getDescription()
        Returns:
        The file's description.
      • getFolder

        public java.util.Optional<FileFolder> getFolder()
        Returns:
        The folder that the file belongs to.
      • getPermissions

        public java.util.Optional<FilePermissions> getPermissions()
        Returns:
        The Permission object is used to represent a user's or group's access to a File or Folder. Permissions are unexpanded by default. Use the query param expand=permissions to see more details under GET /files.
      • getDrive

        public java.util.Optional<FileDrive> getDrive()
        Returns:
        The drive that the file belongs to.
      • getRemoteCreatedAt

        public java.util.Optional<java.time.OffsetDateTime> getRemoteCreatedAt()
        Returns:
        When the third party's file was created.
      • getRemoteUpdatedAt

        public java.util.Optional<java.time.OffsetDateTime> getRemoteUpdatedAt()
        Returns:
        When the third party's file was updated.
      • getRemoteWasDeleted

        public java.util.Optional<java.lang.Boolean> getRemoteWasDeleted()
        Returns:
        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.
      • getFieldMappings

        public java.util.Optional<java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode>> getFieldMappings()
      • getRemoteData

        public java.util.Optional<java.util.List<java.util.Optional<java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode>>>> getRemoteData()
      • 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