public class UserProfileBuilder
extends java.lang.Object
UserProfile instance returned by ApiAdapter.fetchUserProfile(Object)
Makes it easy to construct a profile instance where some of the individual fields may be null.
Also allows new profile fields to be introduced in the future without breaking compatibility with existing ApiAdapter implementations.UserProfile| Constructor and Description |
|---|
UserProfileBuilder() |
| Modifier and Type | Method and Description |
|---|---|
UserProfile |
build()
Builds the user profile.
|
UserProfileBuilder |
setEmail(java.lang.String email)
Sets the profile email field.
|
UserProfileBuilder |
setFirstName(java.lang.String firstName)
Sets the profile firstName field.
|
UserProfileBuilder |
setLastName(java.lang.String lastName)
Sets the profile lastName field.
|
UserProfileBuilder |
setName(java.lang.String name)
Sets the profile name field.
|
UserProfileBuilder |
setUsername(java.lang.String username)
Sets the profile username field.
|
public UserProfileBuilder setName(java.lang.String name)
public UserProfileBuilder setFirstName(java.lang.String firstName)
public UserProfileBuilder setLastName(java.lang.String lastName)
public UserProfileBuilder setEmail(java.lang.String email)
public UserProfileBuilder setUsername(java.lang.String username)
public UserProfile build()