@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class User extends Object implements Serializable, Cloneable, StructuredPojo
The representation of an WorkMail user.
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
User |
clone() |
boolean |
equals(Object obj) |
Date |
getDisabledDate()
The date indicating when the user was disabled from WorkMail use.
|
String |
getDisplayName()
The display name of the user.
|
String |
getEmail()
The email of the user.
|
Date |
getEnabledDate()
The date indicating when the user was enabled for WorkMail use.
|
String |
getId()
The identifier of the user.
|
String |
getName()
The name of the user.
|
String |
getState()
The state of the user, which can be ENABLED, DISABLED, or DELETED.
|
String |
getUserRole()
The role of the user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDisabledDate(Date disabledDate)
The date indicating when the user was disabled from WorkMail use.
|
void |
setDisplayName(String displayName)
The display name of the user.
|
void |
setEmail(String email)
The email of the user.
|
void |
setEnabledDate(Date enabledDate)
The date indicating when the user was enabled for WorkMail use.
|
void |
setId(String id)
The identifier of the user.
|
void |
setName(String name)
The name of the user.
|
void |
setState(String state)
The state of the user, which can be ENABLED, DISABLED, or DELETED.
|
void |
setUserRole(String userRole)
The role of the user.
|
String |
toString()
Returns a string representation of this object.
|
User |
withDisabledDate(Date disabledDate)
The date indicating when the user was disabled from WorkMail use.
|
User |
withDisplayName(String displayName)
The display name of the user.
|
User |
withEmail(String email)
The email of the user.
|
User |
withEnabledDate(Date enabledDate)
The date indicating when the user was enabled for WorkMail use.
|
User |
withId(String id)
The identifier of the user.
|
User |
withName(String name)
The name of the user.
|
User |
withState(EntityState state)
The state of the user, which can be ENABLED, DISABLED, or DELETED.
|
User |
withState(String state)
The state of the user, which can be ENABLED, DISABLED, or DELETED.
|
User |
withUserRole(String userRole)
The role of the user.
|
User |
withUserRole(UserRole userRole)
The role of the user.
|
public void setId(String id)
The identifier of the user.
id
- The identifier of the user.public String getId()
The identifier of the user.
public User withId(String id)
The identifier of the user.
id
- The identifier of the user.public void setEmail(String email)
The email of the user.
email
- The email of the user.public String getEmail()
The email of the user.
public User withEmail(String email)
The email of the user.
email
- The email of the user.public void setName(String name)
The name of the user.
name
- The name of the user.public String getName()
The name of the user.
public User withName(String name)
The name of the user.
name
- The name of the user.public void setDisplayName(String displayName)
The display name of the user.
displayName
- The display name of the user.public String getDisplayName()
The display name of the user.
public User withDisplayName(String displayName)
The display name of the user.
displayName
- The display name of the user.public void setState(String state)
The state of the user, which can be ENABLED, DISABLED, or DELETED.
state
- The state of the user, which can be ENABLED, DISABLED, or DELETED.EntityState
public String getState()
The state of the user, which can be ENABLED, DISABLED, or DELETED.
EntityState
public User withState(String state)
The state of the user, which can be ENABLED, DISABLED, or DELETED.
state
- The state of the user, which can be ENABLED, DISABLED, or DELETED.EntityState
public User withState(EntityState state)
The state of the user, which can be ENABLED, DISABLED, or DELETED.
state
- The state of the user, which can be ENABLED, DISABLED, or DELETED.EntityState
public void setUserRole(String userRole)
The role of the user.
userRole
- The role of the user.UserRole
public String getUserRole()
The role of the user.
UserRole
public User withUserRole(String userRole)
The role of the user.
userRole
- The role of the user.UserRole
public User withUserRole(UserRole userRole)
The role of the user.
userRole
- The role of the user.UserRole
public void setEnabledDate(Date enabledDate)
The date indicating when the user was enabled for WorkMail use.
enabledDate
- The date indicating when the user was enabled for WorkMail use.public Date getEnabledDate()
The date indicating when the user was enabled for WorkMail use.
public User withEnabledDate(Date enabledDate)
The date indicating when the user was enabled for WorkMail use.
enabledDate
- The date indicating when the user was enabled for WorkMail use.public void setDisabledDate(Date disabledDate)
The date indicating when the user was disabled from WorkMail use.
disabledDate
- The date indicating when the user was disabled from WorkMail use.public Date getDisabledDate()
The date indicating when the user was disabled from WorkMail use.
public User withDisabledDate(Date disabledDate)
The date indicating when the user was disabled from WorkMail use.
disabledDate
- The date indicating when the user was disabled from WorkMail use.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.