public static class MemberProfile.Builder
extends java.lang.Object
MemberProfile
.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
accountId |
protected java.lang.String |
email |
protected boolean |
emailVerified |
protected java.lang.String |
externalId |
protected java.util.Date |
invitedOn |
protected java.lang.Boolean |
isDirectoryRestricted |
protected java.util.Date |
joinedOn |
protected TeamMembershipType |
membershipType |
protected Name |
name |
protected java.lang.String |
persistentId |
protected java.lang.String |
profilePhotoUrl |
protected java.util.List<SecondaryEmail> |
secondaryEmails |
protected TeamMemberStatus |
status |
protected java.util.Date |
suspendedOn |
protected java.lang.String |
teamMemberId |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String teamMemberId,
java.lang.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(java.lang.String accountId)
Set value for optional field.
|
MemberProfile.Builder |
withExternalId(java.lang.String externalId)
Set value for optional field.
|
MemberProfile.Builder |
withInvitedOn(java.util.Date invitedOn)
Set value for optional field.
|
MemberProfile.Builder |
withIsDirectoryRestricted(java.lang.Boolean isDirectoryRestricted)
Set value for optional field.
|
MemberProfile.Builder |
withJoinedOn(java.util.Date joinedOn)
Set value for optional field.
|
MemberProfile.Builder |
withPersistentId(java.lang.String persistentId)
Set value for optional field.
|
MemberProfile.Builder |
withProfilePhotoUrl(java.lang.String profilePhotoUrl)
Set value for optional field.
|
MemberProfile.Builder |
withSecondaryEmails(java.util.List<SecondaryEmail> secondaryEmails)
Set value for optional field.
|
MemberProfile.Builder |
withSuspendedOn(java.util.Date suspendedOn)
Set value for optional field.
|
protected final java.lang.String teamMemberId
protected final java.lang.String email
protected final boolean emailVerified
protected final TeamMemberStatus status
protected final Name name
protected final TeamMembershipType membershipType
protected java.lang.String externalId
protected java.lang.String accountId
protected java.util.List<SecondaryEmail> secondaryEmails
protected java.util.Date invitedOn
protected java.util.Date joinedOn
protected java.util.Date suspendedOn
protected java.lang.String persistentId
protected java.lang.Boolean isDirectoryRestricted
protected java.lang.String profilePhotoUrl
protected Builder(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType)
public MemberProfile.Builder withExternalId(java.lang.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(java.lang.String accountId)
accountId
- A user's account identifier. Must have length of at
least 40 and have length of at most 40.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberProfile.Builder withSecondaryEmails(java.util.List<SecondaryEmail> secondaryEmails)
secondaryEmails
- Secondary emails of a user. Must not contain
a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberProfile.Builder withInvitedOn(java.util.Date invitedOn)
invitedOn
- The date and time the user was invited to the team
(contains value only when the member's status matches TeamMemberStatus.INVITED
).public MemberProfile.Builder withJoinedOn(java.util.Date joinedOn)
joinedOn
- The date and time the user joined as a member of a
specific team.public MemberProfile.Builder withSuspendedOn(java.util.Date suspendedOn)
suspendedOn
- The date and time the user was suspended from the
team (contains value only when the member's status matches TeamMemberStatus.SUSPENDED
).public MemberProfile.Builder withPersistentId(java.lang.String persistentId)
persistentId
- Persistent ID that a team can attach to the
user. The persistent ID is unique ID to be used for SAML
authentication.public MemberProfile.Builder withIsDirectoryRestricted(java.lang.Boolean isDirectoryRestricted)
isDirectoryRestricted
- Whether the user is a directory
restricted user.public MemberProfile.Builder withProfilePhotoUrl(java.lang.String profilePhotoUrl)
profilePhotoUrl
- URL for the photo representing the user, if
one is set.public MemberProfile build()
MemberProfile
configured with this
builder's valuesMemberProfile