Package com.dropbox.core.v2.users
Class FullAccount.Builder
java.lang.Object
com.dropbox.core.v2.users.FullAccount.Builder
- Enclosing class:
FullAccount
Builder for
FullAccount.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final AccountTypeprotected Stringprotected final booleanprotected final Stringprotected final booleanprotected final booleanprotected final Stringprotected final Nameprotected Stringprotected final Stringprotected final RootInfoprotected FullTeamprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofFullAccountconfigured with this builder's valueswithCountry(String country) Set value for optional field.withProfilePhotoUrl(String profilePhotoUrl) Set value for optional field.Set value for optional field.withTeamMemberId(String teamMemberId) Set value for optional field.
-
Field Details
-
accountId
-
name
-
email
-
emailVerified
protected final boolean emailVerified -
disabled
protected final boolean disabled -
locale
-
referralLink
-
isPaired
protected final boolean isPaired -
accountType
-
rootInfo
-
profilePhotoUrl
-
country
-
team
-
teamMemberId
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withProfilePhotoUrl
Set value for optional field.- Parameters:
profilePhotoUrl- URL for the photo representing the user, if one is set.- Returns:
- this builder
-
withCountry
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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withTeam
Set value for optional field.- Parameters:
team- If this account is a member of a team, information about that team.- Returns:
- this builder
-
withTeamMemberId
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
Builds an instance ofFullAccountconfigured with this builder's values- Returns:
- new instance of
FullAccount
-