Class SharedLinkMetadata.Builder

    • Field Detail

      • url

        protected final java.lang.String url
      • name

        protected final java.lang.String name
      • id

        protected java.lang.String id
      • expires

        protected java.util.Date expires
      • pathLower

        protected java.lang.String pathLower
      • contentOwnerTeamInfo

        protected Team contentOwnerTeamInfo
    • Constructor Detail

      • Builder

        protected Builder​(java.lang.String url,
                          java.lang.String name,
                          LinkPermissions linkPermissions)
    • Method Detail

      • withId

        public SharedLinkMetadata.Builder withId​(java.lang.String id)
        Set value for optional field.
        Parameters:
        id - A unique identifier for the linked file. Must have length of at least 1.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withExpires

        public SharedLinkMetadata.Builder withExpires​(java.util.Date expires)
        Set value for optional field.
        Parameters:
        expires - Expiration time, if set. By default the link won't expire.
        Returns:
        this builder
      • withPathLower

        public SharedLinkMetadata.Builder withPathLower​(java.lang.String pathLower)
        Set value for optional field.
        Parameters:
        pathLower - The lowercased full path in the user's Dropbox. This always starts with a slash. This field will only be present only if the linked file is in the authenticated user's dropbox.
        Returns:
        this builder
      • withTeamMemberInfo

        public SharedLinkMetadata.Builder withTeamMemberInfo​(TeamMemberInfo teamMemberInfo)
        Set value for optional field.
        Parameters:
        teamMemberInfo - The team membership information of the link's owner. This field will only be present if the link's owner is a team member.
        Returns:
        this builder
      • withContentOwnerTeamInfo

        public SharedLinkMetadata.Builder withContentOwnerTeamInfo​(Team contentOwnerTeamInfo)
        Set value for optional field.
        Parameters:
        contentOwnerTeamInfo - The team information of the content's owner. This field will only be present if the content's owner is a team member and the content's owner team is different from the link's owner team.
        Returns:
        this builder