public static class FullAccount.Builder
extends java.lang.Object
FullAccount
.Modifier and Type | Field and 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 |
Modifier | Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
FullAccount |
build()
Builds an instance of
FullAccount configured with this
builder's values |
FullAccount.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.
|
protected final java.lang.String accountId
protected final Name name
protected final java.lang.String email
protected final boolean emailVerified
protected final boolean disabled
protected final java.lang.String locale
protected final java.lang.String referralLink
protected final boolean isPaired
protected final AccountType accountType
protected final RootInfo rootInfo
protected java.lang.String profilePhotoUrl
protected java.lang.String country
protected FullTeam team
protected java.lang.String teamMemberId
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)
public FullAccount.Builder withProfilePhotoUrl(java.lang.String profilePhotoUrl)
profilePhotoUrl
- URL for the photo representing the user, if
one is set.public FullAccount.Builder withCountry(java.lang.String country)
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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FullAccount.Builder withTeam(FullTeam team)
team
- If this account is a member of a team, information about
that team.public FullAccount.Builder withTeamMemberId(java.lang.String teamMemberId)
teamMemberId
- This account's unique team member id. This field
will only be present if FullAccount.getTeam()
is present.public FullAccount build()
FullAccount
configured with this
builder's valuesFullAccount