Class LinkSettings.Builder

  • Enclosing class:
    LinkSettings

    public static class LinkSettings.Builder
    extends java.lang.Object
    Builder for LinkSettings.
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withAccessLevel

        public LinkSettings.Builder withAccessLevel​(AccessLevel accessLevel)
        Set value for optional field.
        Parameters:
        accessLevel - The access level on the link for this file. Currently, it only accepts 'viewer' and 'viewer_no_comment'.
        Returns:
        this builder
      • withAudience

        public LinkSettings.Builder withAudience​(LinkAudience audience)
        Set value for optional field.
        Parameters:
        audience - The type of audience on the link for this file.
        Returns:
        this builder
      • withExpiry

        public LinkSettings.Builder withExpiry​(LinkExpiry expiry)
        Set value for optional field.
        Parameters:
        expiry - An expiry timestamp to set on a link.
        Returns:
        this builder
      • withPassword

        public LinkSettings.Builder withPassword​(LinkPassword password)
        Set value for optional field.
        Parameters:
        password - The password for the link.
        Returns:
        this builder