Package com.dropbox.core.v2.users
Class BasicAccount.Builder
- java.lang.Object
-
- com.dropbox.core.v2.users.BasicAccount.Builder
-
- Enclosing class:
- BasicAccount
public static class BasicAccount.Builder extends java.lang.Object
Builder forBasicAccount
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
accountId
protected boolean
disabled
protected java.lang.String
email
protected boolean
emailVerified
protected boolean
isTeammate
protected Name
name
protected java.lang.String
profilePhotoUrl
protected java.lang.String
teamMemberId
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicAccount
build()
Builds an instance ofBasicAccount
configured with this builder's valuesBasicAccount.Builder
withProfilePhotoUrl(java.lang.String profilePhotoUrl)
Set value for optional field.BasicAccount.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
-
isTeammate
protected final boolean isTeammate
-
profilePhotoUrl
protected java.lang.String profilePhotoUrl
-
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, boolean isTeammate)
-
-
Method Detail
-
withProfilePhotoUrl
public BasicAccount.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
-
withTeamMemberId
public BasicAccount.Builder withTeamMemberId(java.lang.String teamMemberId)
Set value for optional field.- Parameters:
teamMemberId
- The user's unique team member id. This field will only be present if the user is part of a team andBasicAccount.getIsTeammate()
istrue
.- Returns:
- this builder
-
build
public BasicAccount build()
Builds an instance ofBasicAccount
configured with this builder's values- Returns:
- new instance of
BasicAccount
-
-