public class User extends IdResource
Modifier and Type | Class and Description |
---|---|
static class |
User.Role
Represents the available roles for a user.
|
Constructor and Description |
---|
User()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getEmail()
Returns the email address of the user.
|
String |
getFirstName()
Returns the first name of the user.
|
String |
getLastName()
Returns the last name of the user.
|
String |
getRole()
Returns the role of the user.
|
void |
setEmail(String email)
Sets the email address of the user.
|
void |
setFirstName(String firstName)
Sets the first name of the user.
|
void |
setLastName(String lastName)
Sets the last name of the user.
|
void |
setRole(String role)
Sets the role of the user.
|
void |
setRole(User.Role role)
Sets the role of the user.
|
String |
toString()
Returns a string representation of the object.
|
getId, setId
public void setFirstName(String firstName)
firstName
- The first name of the userpublic String getFirstName()
public void setLastName(String lastName)
lastName
- The last name of the userpublic String getLastName()
public void setEmail(String email)
email
- The email address of the userpublic String getEmail()
public void setRole(String role)
role
- The role of the userpublic void setRole(User.Role role)
role
- The role of the userpublic String getRole()
public String toString()
toString
in class IdResource
Copyright © 2018. All rights reserved.