Class FileLink

    • Constructor Detail

      • FileLink

        public FileLink()
    • Method Detail

      • getFile

        public java.lang.String getFile()
        Get ID of expandable file object.
      • setFile

        public void setFile​(java.lang.String id)
      • getFileObject

        public File getFileObject()
        Get expanded file.
      • setFileObject

        public void setFileObject​(File expandableObject)
      • getCreated

        public java.lang.Long getCreated()
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • getExpired

        public java.lang.Boolean getExpired()
        Whether this link is already expired.
      • getExpiresAt

        public java.lang.Long getExpiresAt()
        Time at which the link expires.
      • getLivemode

        public java.lang.Boolean getLivemode()
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • getObject

        public java.lang.String getObject()
        String representing the object's type. Objects of the same type share the same value.

        Equal to file_link.

      • getUrl

        public java.lang.String getUrl()
        The publicly accessible URL to download the file.
      • setCreated

        public void setCreated​(java.lang.Long created)
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • setExpired

        public void setExpired​(java.lang.Boolean expired)
        Whether this link is already expired.
      • setExpiresAt

        public void setExpiresAt​(java.lang.Long expiresAt)
        Time at which the link expires.
      • setId

        public void setId​(java.lang.String id)
        Unique identifier for the object.
      • setLivemode

        public void setLivemode​(java.lang.Boolean livemode)
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
      • setObject

        public void setObject​(java.lang.String object)
        String representing the object's type. Objects of the same type share the same value.

        Equal to file_link.

      • setUrl

        public void setUrl​(java.lang.String url)
        The publicly accessible URL to download the file.
      • equals

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

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String getId()
        Unique identifier for the object.
        Specified by:
        getId in interface HasId
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
        Specified by:
        getMetadata in interface MetadataStore<FileLink>