Package com.dropbox.core.v2.users
Class FullAccount
- java.lang.Object
- 
- com.dropbox.core.v2.users.Account
- 
- com.dropbox.core.v2.users.FullAccount
 
 
- 
 public class FullAccount extends Account Detailed information about the current user's account.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFullAccount.BuilderBuilder forFullAccount.
 - 
Field SummaryFields Modifier and Type Field Description protected AccountTypeaccountTypeprotected java.lang.Stringcountryprotected booleanisPairedprotected java.lang.Stringlocaleprotected java.lang.StringreferralLinkprotected RootInforootInfoprotected FullTeamteamprotected java.lang.StringteamMemberId- 
Fields inherited from class com.dropbox.core.v2.users.AccountaccountId, disabled, email, emailVerified, name, profilePhotoUrl
 
- 
 - 
Constructor SummaryConstructors Constructor Description FullAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String locale, java.lang.String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo)Detailed information about the current user's account.FullAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String locale, java.lang.String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo, java.lang.String profilePhotoUrl, java.lang.String country, FullTeam team, java.lang.String teamMemberId)Detailed information about the current user's account.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAccountId()The user's unique Dropbox ID.AccountTypegetAccountType()What type of account this user has.java.lang.StringgetCountry()The user's two-letter country code, if available.booleangetDisabled()Whether the user has been disabled.java.lang.StringgetEmail()The user's email address.booleangetEmailVerified()Whether the user has verified their email address.booleangetIsPaired()Whether the user has a personal and work account.java.lang.StringgetLocale()The language that the user specified.NamegetName()Details of a user's name.java.lang.StringgetProfilePhotoUrl()URL for the photo representing the user, if one is set.java.lang.StringgetReferralLink()The user's referral link.RootInfogetRootInfo()The root info for this account.FullTeamgetTeam()If this account is a member of a team, information about that team.java.lang.StringgetTeamMemberId()This account's unique team member id.inthashCode()static FullAccount.BuildernewBuilder(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String locale, java.lang.String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo)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- 
countryprotected final java.lang.String country 
 - 
localeprotected final java.lang.String locale 
 - 
referralLinkprotected final java.lang.String referralLink 
 - 
teamprotected final FullTeam team 
 - 
teamMemberIdprotected final java.lang.String teamMemberId 
 - 
isPairedprotected final boolean isPaired 
 - 
accountTypeprotected final AccountType accountType 
 - 
rootInfoprotected final RootInfo rootInfo 
 
- 
 - 
Constructor Detail- 
FullAccountpublic FullAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String locale, java.lang.String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo, java.lang.String profilePhotoUrl, java.lang.String country, FullTeam team, java.lang.String teamMemberId)Detailed information about the current user's account.Use newBuilder(java.lang.String,com.dropbox.core.v2.users.Name,java.lang.String,boolean,boolean,java.lang.String,java.lang.String,boolean,com.dropbox.core.v2.userscommon.AccountType,com.dropbox.core.v2.common.RootInfo)to create instances of this class without specifying values for all optional fields.- Parameters:
- accountId- The user's unique Dropbox ID. Must have length of at least 40, have length of at most 40, and not be- null.
- name- Details of a user's name. Must not be- null.
- email- The user's email address. Do not rely on this without checking the- Account.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. Must not be- null.
- emailVerified- Whether the user has verified their email address.
- disabled- Whether the user has been disabled.
- locale- The language that the user specified. Locale tags will be IETF language tags. Must have length of at least 2 and not be- null.
- referralLink- The user's referral link. Must not be- null.
- isPaired- Whether the user has a personal and work account. If the current account is personal, then- getTeam()will always be- null, but- getIsPaired()will indicate if a work account is linked.
- accountType- What type of account this user has. Must not be- null.
- rootInfo- The root info for this account. Must not be- null.
- profilePhotoUrl- URL for the photo representing the user, if one is set.
- country- The user's two-letter country code, if available. Country codes are based on ISO 3166-1. Must have length of at least 2 and have length of at most 2.
- team- If this account is a member of a team, information about that team.
- teamMemberId- This account's unique team member id. This field will only be present if- getTeam()is present.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
FullAccountpublic FullAccount(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String locale, java.lang.String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo)Detailed information about the current user's account.The default values for unset fields will be used. - Parameters:
- accountId- The user's unique Dropbox ID. Must have length of at least 40, have length of at most 40, and not be- null.
- name- Details of a user's name. Must not be- null.
- email- The user's email address. Do not rely on this without checking the- Account.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. Must not be- null.
- emailVerified- Whether the user has verified their email address.
- disabled- Whether the user has been disabled.
- locale- The language that the user specified. Locale tags will be IETF language tags. Must have length of at least 2 and not be- null.
- referralLink- The user's referral link. Must not be- null.
- isPaired- Whether the user has a personal and work account. If the current account is personal, then- getTeam()will always be- null, but- getIsPaired()will indicate if a work account is linked.
- accountType- What type of account this user has. Must not be- null.
- rootInfo- The root info for this account. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getAccountIdpublic java.lang.String getAccountId() The user's unique Dropbox ID.- Overrides:
- getAccountIdin class- Account
- Returns:
- value for this field, never null.
 
 - 
getNamepublic Name getName() Details of a user's name.
 - 
getEmailpublic java.lang.String getEmail() The user's email address. Do not rely on this without checking theAccount.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email.
 - 
getEmailVerifiedpublic boolean getEmailVerified() Whether the user has verified their email address.- Overrides:
- getEmailVerifiedin class- Account
- Returns:
- value for this field.
 
 - 
getDisabledpublic boolean getDisabled() Whether the user has been disabled.- Overrides:
- getDisabledin class- Account
- Returns:
- value for this field.
 
 - 
getLocalepublic java.lang.String getLocale() The language that the user specified. Locale tags will be IETF language tags.- Returns:
- value for this field, never null.
 
 - 
getReferralLinkpublic java.lang.String getReferralLink() The user's referral link.- Returns:
- value for this field, never null.
 
 - 
getIsPairedpublic boolean getIsPaired() Whether the user has a personal and work account. If the current account is personal, thengetTeam()will always benull, butgetIsPaired()will indicate if a work account is linked.- Returns:
- value for this field.
 
 - 
getAccountTypepublic AccountType getAccountType() What type of account this user has.- Returns:
- value for this field, never null.
 
 - 
getRootInfopublic RootInfo getRootInfo() The root info for this account.- Returns:
- value for this field, never null.
 
 - 
getProfilePhotoUrlpublic java.lang.String getProfilePhotoUrl() URL for the photo representing the user, if one is set.- Overrides:
- getProfilePhotoUrlin class- Account
- Returns:
- value for this field, or nullif not present.
 
 - 
getCountrypublic java.lang.String getCountry() The user's two-letter country code, if available. Country codes are based on ISO 3166-1.- Returns:
- value for this field, or nullif not present.
 
 - 
getTeampublic FullTeam getTeam() If this account is a member of a team, information about that team.- Returns:
- value for this field, or nullif not present.
 
 - 
getTeamMemberIdpublic java.lang.String getTeamMemberId() This account's unique team member id. This field will only be present ifgetTeam()is present.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static FullAccount.Builder newBuilder(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, java.lang.String locale, java.lang.String referralLink, boolean isPaired, AccountType accountType, RootInfo rootInfo) Returns a new builder for creating an instance of this class.- Parameters:
- accountId- The user's unique Dropbox ID. Must have length of at least 40, have length of at most 40, and not be- null.
- name- Details of a user's name. Must not be- null.
- email- The user's email address. Do not rely on this without checking the- Account.getEmailVerified()field. Even then, it's possible that the user has since lost access to their email. Must not be- null.
- emailVerified- Whether the user has verified their email address.
- disabled- Whether the user has been disabled.
- locale- The language that the user specified. Locale tags will be IETF language tags. Must have length of at least 2 and not be- null.
- referralLink- The user's referral link. Must not be- null.
- isPaired- Whether the user has a personal and work account. If the current account is personal, then- getTeam()will always be- null, but- getIsPaired()will indicate if a work account is linked.
- accountType- What type of account this user has. Must not be- null.
- rootInfo- The root info for this account. Must not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Overrides:
- toStringMultilinein class- Account
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-