public static class TeamMemberProfile.Builder extends MemberProfile.Builder
TeamMemberProfile
.Modifier and Type | Field and Description |
---|---|
protected List<String> |
groups |
accountId, email, emailVerified, externalId, membershipType, name, status, teamMemberId
Modifier | Constructor and Description |
---|---|
protected |
Builder(String teamMemberId,
String email,
boolean emailVerified,
TeamMemberStatus status,
Name name,
TeamMembershipType membershipType,
List<String> groups) |
Modifier and Type | Method and Description |
---|---|
TeamMemberProfile |
build()
Builds an instance of
TeamMemberProfile configured with this
builder's values |
TeamMemberProfile.Builder |
withAccountId(String accountId)
Set value for optional field.
|
TeamMemberProfile.Builder |
withExternalId(String externalId)
Set value for optional field.
|
protected Builder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups)
public TeamMemberProfile.Builder withExternalId(String externalId)
withExternalId
in class MemberProfile.Builder
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.public TeamMemberProfile.Builder withAccountId(String accountId)
withAccountId
in class MemberProfile.Builder
accountId
- A user's account identifier. Must have length of at
least 40 and have length of at most 40.IllegalArgumentException
- If any argument does not meet its
preconditions.public TeamMemberProfile build()
TeamMemberProfile
configured with this
builder's valuesbuild
in class MemberProfile.Builder
TeamMemberProfile