Package com.dropbox.core.v2.users
Class FullAccount.Builder
- java.lang.Object
- 
- com.dropbox.core.v2.users.FullAccount.Builder
 
- 
- Enclosing class:
- FullAccount
 
 public static class FullAccount.Builder extends java.lang.ObjectBuilder forFullAccount.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringaccountIdprotected AccountTypeaccountTypeprotected java.lang.Stringcountryprotected booleandisabledprotected java.lang.Stringemailprotected booleanemailVerifiedprotected booleanisPairedprotected java.lang.Stringlocaleprotected Namenameprotected java.lang.StringprofilePhotoUrlprotected java.lang.StringreferralLinkprotected RootInforootInfoprotected FullTeamteamprotected java.lang.StringteamMemberId
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(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)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FullAccountbuild()Builds an instance ofFullAccountconfigured with this builder's valuesFullAccount.BuilderwithCountry(java.lang.String country)Set value for optional field.FullAccount.BuilderwithProfilePhotoUrl(java.lang.String profilePhotoUrl)Set value for optional field.FullAccount.BuilderwithTeam(FullTeam team)Set value for optional field.FullAccount.BuilderwithTeamMemberId(java.lang.String teamMemberId)Set value for optional field.
 
- 
- 
- 
Field Detail- 
accountIdprotected final java.lang.String accountId 
 - 
nameprotected final Name name 
 - 
emailprotected final java.lang.String email 
 - 
emailVerifiedprotected final boolean emailVerified 
 - 
disabledprotected final boolean disabled 
 - 
localeprotected final java.lang.String locale 
 - 
referralLinkprotected final java.lang.String referralLink 
 - 
isPairedprotected final boolean isPaired 
 - 
accountTypeprotected final AccountType accountType 
 - 
rootInfoprotected final RootInfo rootInfo 
 - 
profilePhotoUrlprotected java.lang.String profilePhotoUrl 
 - 
countryprotected java.lang.String country 
 - 
teamprotected FullTeam team 
 - 
teamMemberIdprotected java.lang.String teamMemberId 
 
- 
 - 
Constructor Detail- 
Builderprotected Builder(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)
 
- 
 - 
Method Detail- 
withProfilePhotoUrlpublic FullAccount.Builder withProfilePhotoUrl(java.lang.String profilePhotoUrl) Set value for optional field.- Parameters:
- profilePhotoUrl- URL for the photo representing the user, if one is set.
- Returns:
- this builder
 
 - 
withCountrypublic FullAccount.Builder withCountry(java.lang.String country) Set value for optional field.- Parameters:
- 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.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withTeampublic FullAccount.Builder withTeam(FullTeam team) Set value for optional field.- Parameters:
- team- If this account is a member of a team, information about that team.
- Returns:
- this builder
 
 - 
withTeamMemberIdpublic FullAccount.Builder withTeamMemberId(java.lang.String teamMemberId) Set value for optional field.- Parameters:
- teamMemberId- This account's unique team member id. This field will only be present if- FullAccount.getTeam()is present.
- Returns:
- this builder
 
 - 
buildpublic FullAccount build() Builds an instance ofFullAccountconfigured with this builder's values- Returns:
- new instance of FullAccount
 
 
- 
 
-