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.Object
Builder forFullAccount
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
accountId
protected AccountType
accountType
protected java.lang.String
country
protected boolean
disabled
protected java.lang.String
email
protected boolean
emailVerified
protected boolean
isPaired
protected java.lang.String
locale
protected Name
name
protected java.lang.String
profilePhotoUrl
protected java.lang.String
referralLink
protected RootInfo
rootInfo
protected FullTeam
team
protected java.lang.String
teamMemberId
-
Constructor Summary
Constructors Modifier Constructor Description protected
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FullAccount
build()
Builds an instance ofFullAccount
configured with this builder's valuesFullAccount.Builder
withCountry(java.lang.String country)
Set value for optional field.FullAccount.Builder
withProfilePhotoUrl(java.lang.String profilePhotoUrl)
Set value for optional field.FullAccount.Builder
withTeam(FullTeam team)
Set value for optional field.FullAccount.Builder
withTeamMemberId(java.lang.String teamMemberId)
Set value for optional field.
-
-
-
Field Detail
-
accountId
protected final java.lang.String accountId
-
name
protected final Name name
-
email
protected final java.lang.String email
-
emailVerified
protected final boolean emailVerified
-
disabled
protected final boolean disabled
-
locale
protected final java.lang.String locale
-
referralLink
protected final java.lang.String referralLink
-
isPaired
protected final boolean isPaired
-
accountType
protected final AccountType accountType
-
rootInfo
protected final RootInfo rootInfo
-
profilePhotoUrl
protected java.lang.String profilePhotoUrl
-
country
protected java.lang.String country
-
team
protected FullTeam team
-
teamMemberId
protected java.lang.String teamMemberId
-
-
Constructor Detail
-
Builder
protected 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
-
withProfilePhotoUrl
public 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
-
withCountry
public 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.
-
withTeam
public 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
-
withTeamMemberId
public 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 ifFullAccount.getTeam()
is present.- Returns:
- this builder
-
build
public FullAccount build()
Builds an instance ofFullAccount
configured with this builder's values- Returns:
- new instance of
FullAccount
-
-