Class BasicAccount.Builder

java.lang.Object
com.dropbox.core.v2.users.BasicAccount.Builder
Enclosing class:
BasicAccount

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

    • accountId

      protected final String accountId
    • name

      protected final Name name
    • email

      protected final String email
    • emailVerified

      protected final boolean emailVerified
    • disabled

      protected final boolean disabled
    • isTeammate

      protected final boolean isTeammate
    • profilePhotoUrl

      protected String profilePhotoUrl
    • teamMemberId

      protected String teamMemberId
  • Constructor Details

    • Builder

      protected Builder(String accountId, Name name, String email, boolean emailVerified, boolean disabled, boolean isTeammate)
  • Method Details

    • withProfilePhotoUrl

      public BasicAccount.Builder withProfilePhotoUrl(String profilePhotoUrl)
      Set value for optional field.
      Parameters:
      profilePhotoUrl - URL for the photo representing the user, if one is set.
      Returns:
      this builder
    • withTeamMemberId

      public BasicAccount.Builder withTeamMemberId(String teamMemberId)
      Set value for optional field.
      Parameters:
      teamMemberId - The user's unique team member id. This field will only be present if the user is part of a team and BasicAccount.getIsTeammate() is true.
      Returns:
      this builder
    • build

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