public class TeamMemberProfile extends MemberProfile
Modifier and Type | Class and Description |
---|---|
static class |
TeamMemberProfile.Builder
Builder for
TeamMemberProfile . |
Modifier and Type | Field and Description |
---|---|
protected List<String> |
groups |
accountId, email, emailVerified, externalId, membershipType, name, status, teamMemberId
Constructor and Description |
---|
TeamMemberProfile(String teamMemberId,
String email,
boolean emailVerified,
TeamMemberStatus status,
Name name,
TeamMembershipType membershipType,
List<String> groups)
Profile of a user as a member of a team.
|
TeamMemberProfile(String teamMemberId,
String email,
boolean emailVerified,
TeamMemberStatus status,
Name name,
TeamMembershipType membershipType,
List<String> groups,
String externalId,
String accountId)
Profile of a user as a member of a team.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAccountId()
A user's account identifier.
|
String |
getEmail()
Email address of user.
|
boolean |
getEmailVerified()
Is true if the user's email is verified to be owned by the user.
|
String |
getExternalId()
External ID that a team can attach to the user.
|
List<String> |
getGroups()
List of group IDs of groups that the user belongs to.
|
TeamMembershipType |
getMembershipType()
The user's membership type: full (normal team member) vs limited (does
not use a license; no access to the team's shared quota).
|
Name |
getName()
Representations for a person's name.
|
TeamMemberStatus |
getStatus()
The user's status as a member of a specific team.
|
String |
getTeamMemberId()
ID of user as a member of a team.
|
int |
hashCode() |
static TeamMemberProfile.Builder |
newBuilder(String teamMemberId,
String email,
boolean emailVerified,
TeamMemberStatus status,
Name name,
TeamMembershipType membershipType,
List<String> groups)
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
newBuilder
public TeamMemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups, String externalId, String accountId)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
teamMemberId
- ID of user as a member of a team. Must not be null
.email
- Email address of user. Must not be null
.emailVerified
- Is true if the user's email is verified to be owned
by the user.status
- The user's status as a member of a specific team. Must not
be null
.name
- Representations for a person's name. Must not be null
.membershipType
- The user's membership type: full (normal team
member) vs limited (does not use a license; no access to the team's
shared quota). Must not be null
.groups
- List of group IDs of groups that the user belongs to. Must
not contain a null
item and not be null
.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.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 TeamMemberProfile(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups)
The default values for unset fields will be used.
teamMemberId
- ID of user as a member of a team. Must not be null
.email
- Email address of user. Must not be null
.emailVerified
- Is true if the user's email is verified to be owned
by the user.status
- The user's status as a member of a specific team. Must not
be null
.name
- Representations for a person's name. Must not be null
.membershipType
- The user's membership type: full (normal team
member) vs limited (does not use a license; no access to the team's
shared quota). Must not be null
.groups
- List of group IDs of groups that the user belongs to. Must
not contain a null
item and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getTeamMemberId()
getTeamMemberId
in class MemberProfile
null
.public String getEmail()
getEmail
in class MemberProfile
null
.public boolean getEmailVerified()
getEmailVerified
in class MemberProfile
public TeamMemberStatus getStatus()
getStatus
in class MemberProfile
null
.public Name getName()
getName
in class MemberProfile
null
.public TeamMembershipType getMembershipType()
getMembershipType
in class MemberProfile
null
.public List<String> getGroups()
null
.public String getExternalId()
getExternalId
in class MemberProfile
null
if not present.public String getAccountId()
getAccountId
in class MemberProfile
null
if not present.public static TeamMemberProfile.Builder newBuilder(String teamMemberId, String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, List<String> groups)
teamMemberId
- ID of user as a member of a team. Must not be null
.email
- Email address of user. Must not be null
.emailVerified
- Is true if the user's email is verified to be owned
by the user.status
- The user's status as a member of a specific team. Must not
be null
.name
- Representations for a person's name. Must not be null
.membershipType
- The user's membership type: full (normal team
member) vs limited (does not use a license; no access to the team's
shared quota). Must not be null
.groups
- List of group IDs of groups that the user belongs to. Must
not contain a null
item and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class MemberProfile
public boolean equals(Object obj)
equals
in class MemberProfile
public String toString()
toString
in class MemberProfile
public String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class MemberProfile