Class LinkSettings.Builder

java.lang.Object
com.dropbox.core.v2.sharing.LinkSettings.Builder
Enclosing class:
LinkSettings

public static class LinkSettings.Builder extends Object
Builder for LinkSettings.
  • Field Details

  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • 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
    • build

      public LinkSettings build()
      Builds an instance of LinkSettings configured with this builder's values
      Returns:
      new instance of LinkSettings