public static class BasicAccount.Builder
extends java.lang.Object
BasicAccount
.Modifier and Type | Field and 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 |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String accountId,
Name name,
java.lang.String email,
boolean emailVerified,
boolean disabled,
boolean isTeammate) |
Modifier and Type | Method and Description |
---|---|
BasicAccount |
build()
Builds an instance of
BasicAccount configured with this
builder's values |
BasicAccount.Builder |
withProfilePhotoUrl(java.lang.String profilePhotoUrl)
Set value for optional field.
|
BasicAccount.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 boolean isTeammate
protected java.lang.String profilePhotoUrl
protected java.lang.String teamMemberId
protected Builder(java.lang.String accountId, Name name, java.lang.String email, boolean emailVerified, boolean disabled, boolean isTeammate)
public BasicAccount.Builder withProfilePhotoUrl(java.lang.String profilePhotoUrl)
profilePhotoUrl
- URL for the photo representing the user, if
one is set.public BasicAccount.Builder withTeamMemberId(java.lang.String teamMemberId)
teamMemberId
- The user's unique team member id. This field
will only be present if the user is part of a team and BasicAccount.getIsTeammate()
is true
.public BasicAccount build()
BasicAccount
configured with this
builder's valuesBasicAccount