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