Class MemberProfile.Builder

java.lang.Object
com.dropbox.core.v2.team.MemberProfile.Builder
Direct Known Subclasses:
TeamMemberProfile.Builder
Enclosing class:
MemberProfile

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

    • teamMemberId

      protected final String teamMemberId
    • email

      protected final String email
    • emailVerified

      protected final boolean emailVerified
    • status

      protected final TeamMemberStatus status
    • name

      protected final Name name
    • membershipType

      protected final TeamMembershipType membershipType
    • externalId

      protected String externalId
    • accountId

      protected String accountId
    • secondaryEmails

      protected List<SecondaryEmail> secondaryEmails
    • invitedOn

      protected Date invitedOn
    • joinedOn

      protected Date joinedOn
    • suspendedOn

      protected Date suspendedOn
    • persistentId

      protected String persistentId
    • isDirectoryRestricted

      protected Boolean isDirectoryRestricted
    • profilePhotoUrl

      protected String profilePhotoUrl
  • Constructor Details

  • Method Details

    • withExternalId

      public MemberProfile.Builder withExternalId(String externalId)
      Set value for optional field.
      Parameters:
      externalId - External ID that a team can attach to the user. An application using the API may find it easier to use their own IDs instead of Dropbox IDs like account_id or team_member_id.
      Returns:
      this builder
    • withAccountId

      public MemberProfile.Builder withAccountId(String accountId)
      Set value for optional field.
      Parameters:
      accountId - A user's account identifier. Must have length of at least 40 and have length of at most 40.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • withSecondaryEmails

      public MemberProfile.Builder withSecondaryEmails(List<SecondaryEmail> secondaryEmails)
      Set value for optional field.
      Parameters:
      secondaryEmails - Secondary emails of a user. Must not contain a null item.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • withInvitedOn

      public MemberProfile.Builder withInvitedOn(Date invitedOn)
      Set value for optional field.
      Parameters:
      invitedOn - The date and time the user was invited to the team (contains value only when the member's status matches TeamMemberStatus.INVITED).
      Returns:
      this builder
    • withJoinedOn

      public MemberProfile.Builder withJoinedOn(Date joinedOn)
      Set value for optional field.
      Parameters:
      joinedOn - The date and time the user joined as a member of a specific team.
      Returns:
      this builder
    • withSuspendedOn

      public MemberProfile.Builder withSuspendedOn(Date suspendedOn)
      Set value for optional field.
      Parameters:
      suspendedOn - The date and time the user was suspended from the team (contains value only when the member's status matches TeamMemberStatus.SUSPENDED).
      Returns:
      this builder
    • withPersistentId

      public MemberProfile.Builder withPersistentId(String persistentId)
      Set value for optional field.
      Parameters:
      persistentId - Persistent ID that a team can attach to the user. The persistent ID is unique ID to be used for SAML authentication.
      Returns:
      this builder
    • withIsDirectoryRestricted

      public MemberProfile.Builder withIsDirectoryRestricted(Boolean isDirectoryRestricted)
      Set value for optional field.
      Parameters:
      isDirectoryRestricted - Whether the user is a directory restricted user.
      Returns:
      this builder
    • withProfilePhotoUrl

      public MemberProfile.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
    • build

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