Package com.dropbox.core.v2.team
Class MemberProfile
- java.lang.Object
-
- com.dropbox.core.v2.team.MemberProfile
-
- Direct Known Subclasses:
TeamMemberProfile
public class MemberProfile extends java.lang.ObjectBasic member profile.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMemberProfile.BuilderBuilder forMemberProfile.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringaccountIdprotected java.lang.Stringemailprotected booleanemailVerifiedprotected java.lang.StringexternalIdprotected java.util.DateinvitedOnprotected java.lang.BooleanisDirectoryRestrictedprotected java.util.DatejoinedOnprotected TeamMembershipTypemembershipTypeprotected Namenameprotected java.lang.StringpersistentIdprotected java.lang.StringprofilePhotoUrlprotected java.util.List<SecondaryEmail>secondaryEmailsprotected TeamMemberStatusstatusprotected java.util.DatesuspendedOnprotected java.lang.StringteamMemberId
-
Constructor Summary
Constructors Constructor Description MemberProfile(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType)Basic member profile.MemberProfile(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, java.lang.String externalId, java.lang.String accountId, java.util.List<SecondaryEmail> secondaryEmails, java.util.Date invitedOn, java.util.Date joinedOn, java.util.Date suspendedOn, java.lang.String persistentId, java.lang.Boolean isDirectoryRestricted, java.lang.String profilePhotoUrl)Basic member profile.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAccountId()A user's account identifier.java.lang.StringgetEmail()Email address of user.booleangetEmailVerified()Is true if the user's email is verified to be owned by the user.java.lang.StringgetExternalId()External ID that a team can attach to the user.java.util.DategetInvitedOn()The date and time the user was invited to the team (contains value only when the member's status matchesTeamMemberStatus.INVITED).java.lang.BooleangetIsDirectoryRestricted()Whether the user is a directory restricted user.java.util.DategetJoinedOn()The date and time the user joined as a member of a specific team.TeamMembershipTypegetMembershipType()The user's membership type: full (normal team member) vs limited (does not use a license; no access to the team's shared quota).NamegetName()Representations for a person's name.java.lang.StringgetPersistentId()Persistent ID that a team can attach to the user.java.lang.StringgetProfilePhotoUrl()URL for the photo representing the user, if one is set.java.util.List<SecondaryEmail>getSecondaryEmails()Secondary emails of a user.TeamMemberStatusgetStatus()The user's status as a member of a specific team.java.util.DategetSuspendedOn()The date and time the user was suspended from the team (contains value only when the member's status matchesTeamMemberStatus.SUSPENDED).java.lang.StringgetTeamMemberId()ID of user as a member of a team.inthashCode()static MemberProfile.BuildernewBuilder(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
teamMemberId
protected final java.lang.String teamMemberId
-
externalId
protected final java.lang.String externalId
-
accountId
protected final java.lang.String accountId
-
email
protected final java.lang.String email
-
emailVerified
protected final boolean emailVerified
-
secondaryEmails
protected final java.util.List<SecondaryEmail> secondaryEmails
-
status
protected final TeamMemberStatus status
-
name
protected final Name name
-
membershipType
protected final TeamMembershipType membershipType
-
invitedOn
protected final java.util.Date invitedOn
-
joinedOn
protected final java.util.Date joinedOn
-
suspendedOn
protected final java.util.Date suspendedOn
-
persistentId
protected final java.lang.String persistentId
-
isDirectoryRestricted
protected final java.lang.Boolean isDirectoryRestricted
-
profilePhotoUrl
protected final java.lang.String profilePhotoUrl
-
-
Constructor Detail
-
MemberProfile
public MemberProfile(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType, java.lang.String externalId, java.lang.String accountId, java.util.List<SecondaryEmail> secondaryEmails, java.util.Date invitedOn, java.util.Date joinedOn, java.util.Date suspendedOn, java.lang.String persistentId, java.lang.Boolean isDirectoryRestricted, java.lang.String profilePhotoUrl)Basic member profile.Use
newBuilder(java.lang.String,java.lang.String,boolean,com.dropbox.core.v2.team.TeamMemberStatus,com.dropbox.core.v2.users.Name,com.dropbox.core.v2.team.TeamMembershipType)to create instances of this class without specifying values for all optional fields.- Parameters:
teamMemberId- ID of user as a member of a team. Must not benull.email- Email address of user. Must not benull.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 benull.name- Representations for a person's name. Must not benull.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 benull.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.secondaryEmails- Secondary emails of a user. Must not contain anullitem.invitedOn- The date and time the user was invited to the team (contains value only when the member's status matchesTeamMemberStatus.INVITED).joinedOn- The date and time the user joined as a member of a specific team.suspendedOn- The date and time the user was suspended from the team (contains value only when the member's status matchesTeamMemberStatus.SUSPENDED).persistentId- Persistent ID that a team can attach to the user. The persistent ID is unique ID to be used for SAML authentication.isDirectoryRestricted- Whether the user is a directory restricted user.profilePhotoUrl- URL for the photo representing the user, if one is set.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
MemberProfile
public MemberProfile(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType)Basic member profile.The default values for unset fields will be used.
- Parameters:
teamMemberId- ID of user as a member of a team. Must not benull.email- Email address of user. Must not benull.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 benull.name- Representations for a person's name. Must not benull.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 benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getTeamMemberId
public java.lang.String getTeamMemberId()
ID of user as a member of a team.- Returns:
- value for this field, never
null.
-
getEmail
public java.lang.String getEmail()
Email address of user.- Returns:
- value for this field, never
null.
-
getEmailVerified
public boolean getEmailVerified()
Is true if the user's email is verified to be owned by the user.- Returns:
- value for this field.
-
getStatus
public TeamMemberStatus getStatus()
The user's status as a member of a specific team.- Returns:
- value for this field, never
null.
-
getName
public Name getName()
Representations for a person's name.- Returns:
- value for this field, never
null.
-
getMembershipType
public 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).- Returns:
- value for this field, never
null.
-
getExternalId
public java.lang.String getExternalId()
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:
- value for this field, or
nullif not present.
-
getAccountId
public java.lang.String getAccountId()
A user's account identifier.- Returns:
- value for this field, or
nullif not present.
-
getSecondaryEmails
public java.util.List<SecondaryEmail> getSecondaryEmails()
Secondary emails of a user.- Returns:
- value for this field, or
nullif not present.
-
getInvitedOn
public java.util.Date getInvitedOn()
The date and time the user was invited to the team (contains value only when the member's status matchesTeamMemberStatus.INVITED).- Returns:
- value for this field, or
nullif not present.
-
getJoinedOn
public java.util.Date getJoinedOn()
The date and time the user joined as a member of a specific team.- Returns:
- value for this field, or
nullif not present.
-
getSuspendedOn
public java.util.Date getSuspendedOn()
The date and time the user was suspended from the team (contains value only when the member's status matchesTeamMemberStatus.SUSPENDED).- Returns:
- value for this field, or
nullif not present.
-
getPersistentId
public java.lang.String getPersistentId()
Persistent ID that a team can attach to the user. The persistent ID is unique ID to be used for SAML authentication.- Returns:
- value for this field, or
nullif not present.
-
getIsDirectoryRestricted
public java.lang.Boolean getIsDirectoryRestricted()
Whether the user is a directory restricted user.- Returns:
- value for this field, or
nullif not present.
-
getProfilePhotoUrl
public java.lang.String getProfilePhotoUrl()
URL for the photo representing the user, if one is set.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static MemberProfile.Builder newBuilder(java.lang.String teamMemberId, java.lang.String email, boolean emailVerified, TeamMemberStatus status, Name name, TeamMembershipType membershipType)
Returns a new builder for creating an instance of this class.- Parameters:
teamMemberId- ID of user as a member of a team. Must not benull.email- Email address of user. Must not benull.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 benull.name- Representations for a person's name. Must not benull.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 benull.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-
-