public static class FullAccount.Builder extends Object
FullAccount
.Modifier and Type | Field and Description |
---|---|
protected String |
accountId |
protected AccountType |
accountType |
protected String |
country |
protected boolean |
disabled |
protected String |
email |
protected boolean |
emailVerified |
protected boolean |
isPaired |
protected String |
locale |
protected Name |
name |
protected String |
profilePhotoUrl |
protected String |
referralLink |
protected FullTeam |
team |
protected String |
teamMemberId |
Modifier | Constructor and Description |
---|---|
protected |
Builder(String accountId,
Name name,
String email,
boolean emailVerified,
boolean disabled,
String locale,
String referralLink,
boolean isPaired,
AccountType accountType) |
Modifier and Type | Method and Description |
---|---|
FullAccount |
build()
Builds an instance of
FullAccount configured with this
builder's values |
FullAccount.Builder |
withCountry(String country)
Set value for optional field.
|
FullAccount.Builder |
withProfilePhotoUrl(String profilePhotoUrl)
Set value for optional field.
|
FullAccount.Builder |
withTeam(FullTeam team)
Set value for optional field.
|
FullAccount.Builder |
withTeamMemberId(String teamMemberId)
Set value for optional field.
|
protected final String accountId
protected final Name name
protected final String email
protected final boolean emailVerified
protected final boolean disabled
protected final String locale
protected final String referralLink
protected final boolean isPaired
protected final AccountType accountType
protected String profilePhotoUrl
protected String country
protected FullTeam team
protected String teamMemberId
public FullAccount.Builder withProfilePhotoUrl(String profilePhotoUrl)
profilePhotoUrl
- URL for the photo representing the user, if
one is set.public FullAccount.Builder withCountry(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.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(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