public static class BasicAccount.Builder extends Object
BasicAccount
.Modifier and Type | Field and Description |
---|---|
protected String |
accountId |
protected boolean |
disabled |
protected String |
email |
protected boolean |
emailVerified |
protected boolean |
isTeammate |
protected Name |
name |
protected String |
profilePhotoUrl |
protected String |
teamMemberId |
Modifier | Constructor and Description |
---|---|
protected |
Builder(String accountId,
Name name,
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(String profilePhotoUrl)
Set value for optional field.
|
BasicAccount.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 boolean isTeammate
protected String profilePhotoUrl
protected String teamMemberId
public BasicAccount.Builder withProfilePhotoUrl(String profilePhotoUrl)
profilePhotoUrl
- URL for the photo representing the user, if
one is set.public BasicAccount.Builder withTeamMemberId(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