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
public static class TeamMemberProfile.Builder extends MemberProfile.Builder
Builder forTeamMemberProfile
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
groups
protected java.lang.String
memberFolderId
-
Fields 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
Constructors Modifier Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TeamMemberProfile
build()
Builds an instance ofTeamMemberProfile
configured with this builder's valuesTeamMemberProfile.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.
-
-
-
Constructor Detail
-
Builder
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)
-
-
Method Detail
-
withExternalId
public TeamMemberProfile.Builder withExternalId(java.lang.String externalId)
Set value for optional field.- Overrides:
withExternalId
in 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
public TeamMemberProfile.Builder withAccountId(java.lang.String accountId)
Set value for optional field.- Overrides:
withAccountId
in 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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withSecondaryEmails
public TeamMemberProfile.Builder withSecondaryEmails(java.util.List<SecondaryEmail> secondaryEmails)
Set value for optional field.- Overrides:
withSecondaryEmails
in classMemberProfile.Builder
- Parameters:
secondaryEmails
- Secondary emails of a user. Must not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withInvitedOn
public TeamMemberProfile.Builder withInvitedOn(java.util.Date invitedOn)
Set value for optional field.- Overrides:
withInvitedOn
in 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
public TeamMemberProfile.Builder withJoinedOn(java.util.Date joinedOn)
Set value for optional field.- Overrides:
withJoinedOn
in classMemberProfile.Builder
- Parameters:
joinedOn
- The date and time the user joined as a member of a specific team.- Returns:
- this builder
-
withSuspendedOn
public TeamMemberProfile.Builder withSuspendedOn(java.util.Date suspendedOn)
Set value for optional field.- Overrides:
withSuspendedOn
in 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
public TeamMemberProfile.Builder withPersistentId(java.lang.String persistentId)
Set value for optional field.- Overrides:
withPersistentId
in 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
public TeamMemberProfile.Builder withIsDirectoryRestricted(java.lang.Boolean isDirectoryRestricted)
Set value for optional field.- Overrides:
withIsDirectoryRestricted
in classMemberProfile.Builder
- Parameters:
isDirectoryRestricted
- Whether the user is a directory restricted user.- Returns:
- this builder
-
withProfilePhotoUrl
public TeamMemberProfile.Builder withProfilePhotoUrl(java.lang.String profilePhotoUrl)
Set value for optional field.- Overrides:
withProfilePhotoUrl
in classMemberProfile.Builder
- Parameters:
profilePhotoUrl
- URL for the photo representing the user, if one is set.- Returns:
- this builder
-
build
public TeamMemberProfile build()
Builds an instance ofTeamMemberProfile
configured with this builder's values- Overrides:
build
in classMemberProfile.Builder
- Returns:
- new instance of
TeamMemberProfile
-
-