Class SharedLinkSettings.Builder

    • Field Detail

      • requirePassword

        protected java.lang.Boolean requirePassword
      • linkPassword

        protected java.lang.String linkPassword
      • expires

        protected java.util.Date expires
      • allowDownload

        protected java.lang.Boolean allowDownload
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withRequirePassword

        public SharedLinkSettings.Builder withRequirePassword​(java.lang.Boolean requirePassword)
        Set value for optional field.
        Parameters:
        requirePassword - Boolean flag to enable or disable password protection.
        Returns:
        this builder
      • withExpires

        public SharedLinkSettings.Builder withExpires​(java.util.Date expires)
        Set value for optional field.
        Parameters:
        expires - Expiration time of the shared link. By default the link won't expire.
        Returns:
        this builder
      • withAudience

        public SharedLinkSettings.Builder withAudience​(LinkAudience audience)
        Set value for optional field.
        Parameters:
        audience - The new audience who can benefit from the access level specified by the link's access level specified in the `link_access_level` field of `LinkPermissions`. This is used in conjunction with team policies and shared folder policies to determine the final effective audience type in the `effective_audience` field of `LinkPermissions.
        Returns:
        this builder
      • withAccess

        public SharedLinkSettings.Builder withAccess​(RequestedLinkAccessLevel access)
        Set value for optional field.
        Parameters:
        access - Requested access level you want the audience to gain from this link. Note, modifying access level for an existing link is not supported.
        Returns:
        this builder
      • withAllowDownload

        public SharedLinkSettings.Builder withAllowDownload​(java.lang.Boolean allowDownload)
        Set value for optional field.
        Parameters:
        allowDownload - Boolean flag to allow or not download capabilities for shared links.
        Returns:
        this builder