Package model

Class ExternalLink


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class ExternalLink
    extends Object
    ExternalLink
    • Constructor Detail

      • ExternalLink

        public ExternalLink()
    • Method Detail

      • getId

        @Nullable
        public String getId()
        The ID of the `external_Link` resource.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getCreatedAt

        @Nullable
        public OffsetDateTime getCreatedAt()
        Timestamp of when the object was created.
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
      • getDuration

        @Nullable
        public String getDuration()
        Details how long the `url` will be avalible for users to upload files to.
        Returns:
        duration
      • setDuration

        public void setDuration​(String duration)
      • getExpired

        @Nullable
        public Boolean getExpired()
        <ul><li>If <strong>TRUE</strong> the link has expired<br><li>If <strong>FALSE</strong>, the link is active and files can still be uploaded or downloaded from the link.
        Returns:
        expired
      • setExpired

        public void setExpired​(Boolean expired)
      • getExpiresAt

        @Nullable
        public String getExpiresAt()
        The timestamp that the external link expires at.
        Returns:
        expiresAt
      • setExpiresAt

        public void setExpiresAt​(String expiresAt)
      • getFileId

        @Nullable
        public String getFileId()
        The `File` ID the `external_link` is related to.
        Returns:
        fileId
      • setFileId

        public void setFileId​(String fileId)
      • getTags

        @Nullable
        public Map<String,​String> getTags()
        Key value pair for annotating custom meta data (e.g. order numbers).
        Returns:
        tags
      • getType

        @Nullable
        public String getType()
        Sets if the link is for uploading or downloading files from Finix.
        Returns:
        type
      • setType

        public void setType​(String type)
      • getUrl

        @Nullable
        public String getUrl()
        The URL you can share with merchants to **UPLOAD** or **DOWNLOAD** files depending on the request sent.
        Returns:
        url
      • setUrl

        public void setUrl​(String url)
      • getUserId

        @Nullable
        public String getUserId()
        The ID of the `user` that requested to create this link.
        Returns:
        userId
      • setUserId

        public void setUserId​(String userId)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to ExternalLink
      • fromJson

        public static ExternalLink fromJson​(String jsonString)
                                     throws IOException
        Create an instance of ExternalLink given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ExternalLink
        Throws:
        IOException - if the JSON string is invalid with respect to ExternalLink
      • toJson

        public String toJson()
        Convert an instance of ExternalLink to an JSON string
        Returns:
        JSON string