public static class MemberProfile.Builder extends Object
MemberProfile
.Modifier and Type | Field and Description |
---|---|
protected String |
accountId |
protected String |
email |
protected boolean |
emailVerified |
protected String |
externalId |
protected TeamMembershipType |
membershipType |
protected Name |
name |
protected TeamMemberStatus |
status |
protected String |
teamMemberId |
Modifier | Constructor and Description |
---|---|
protected |
Builder(String teamMemberId,
String email,
boolean emailVerified,
TeamMemberStatus status,
Name name,
TeamMembershipType membershipType) |
Modifier and Type | Method and Description |
---|---|
MemberProfile |
build()
Builds an instance of
MemberProfile configured with this
builder's values |
MemberProfile.Builder |
withAccountId(String accountId)
Set value for optional field.
|
MemberProfile.Builder |
withExternalId(String externalId)
Set value for optional field.
|
protected final String teamMemberId
protected final String email
protected final boolean emailVerified
protected final TeamMemberStatus status
protected final Name name
protected final TeamMembershipType membershipType
protected String externalId
protected String accountId
protected Builder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType)
public MemberProfile.Builder withExternalId(String externalId)
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 MemberProfile.Builder withAccountId(String accountId)
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 MemberProfile build()
MemberProfile
configured with this
builder's valuesMemberProfile