Package com.dropbox.core.v2.team
Class TeamMemberProfile.Builder
java.lang.Object
com.dropbox.core.v2.team.MemberProfile.Builder
com.dropbox.core.v2.team.TeamMemberProfile.Builder
- Enclosing class:
TeamMemberProfile
Builder for
TeamMemberProfile.-
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.team.MemberProfile.Builder
accountId, email, emailVerified, externalId, invitedOn, isDirectoryRestricted, joinedOn, membershipType, name, persistentId, profilePhotoUrl, secondaryEmails, status, suspendedOn, teamMemberId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups, String memberFolderId, String rootFolderId) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofTeamMemberProfileconfigured with this builder's valueswithAccountId(String accountId) Set value for optional field.withExternalId(String externalId) Set value for optional field.withInvitedOn(Date invitedOn) Set value for optional field.withIsDirectoryRestricted(Boolean isDirectoryRestricted) Set value for optional field.withJoinedOn(Date joinedOn) Set value for optional field.withPersistentId(String persistentId) Set value for optional field.withProfilePhotoUrl(String profilePhotoUrl) Set value for optional field.withSecondaryEmails(List<SecondaryEmail> secondaryEmails) Set value for optional field.withSuspendedOn(Date suspendedOn) Set value for optional field.
-
Field Details
-
groups
-
memberFolderId
-
rootFolderId
-
-
Constructor Details
-
Builder
protected Builder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups, String memberFolderId, String rootFolderId)
-
-
Method Details
-
withExternalId
Set value for optional field.- Overrides:
withExternalIdin classMemberProfile.Builder- 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
Set value for optional field.- Overrides:
withAccountIdin classMemberProfile.Builder- 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
Set value for optional field.- Overrides:
withSecondaryEmailsin classMemberProfile.Builder- Parameters:
secondaryEmails- Secondary emails of a user. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withInvitedOn
Set value for optional field.- Overrides:
withInvitedOnin classMemberProfile.Builder- Parameters:
invitedOn- The date and time the user was invited to the team (contains value only when the member's status matchesTeamMemberStatus.INVITED).- Returns:
- this builder
-
withJoinedOn
Set value for optional field.- Overrides:
withJoinedOnin classMemberProfile.Builder- Parameters:
joinedOn- The date and time the user joined as a member of a specific team.- Returns:
- this builder
-
withSuspendedOn
Set value for optional field.- Overrides:
withSuspendedOnin classMemberProfile.Builder- Parameters:
suspendedOn- The date and time the user was suspended from the team (contains value only when the member's status matchesTeamMemberStatus.SUSPENDED).- Returns:
- this builder
-
withPersistentId
Set value for optional field.- Overrides:
withPersistentIdin classMemberProfile.Builder- 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
Set value for optional field.- Overrides:
withIsDirectoryRestrictedin classMemberProfile.Builder- Parameters:
isDirectoryRestricted- Whether the user is a directory restricted user.- Returns:
- this builder
-
withProfilePhotoUrl
Set value for optional field.- Overrides:
withProfilePhotoUrlin classMemberProfile.Builder- Parameters:
profilePhotoUrl- URL for the photo representing the user, if one is set.- Returns:
- this builder
-
build
Builds an instance ofTeamMemberProfileconfigured with this builder's values- Overrides:
buildin classMemberProfile.Builder- Returns:
- new instance of
TeamMemberProfile
-