public final class User extends java.lang.Object implements java.lang.Cloneable, IUnknownPropertiesConsumer
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
void |
acceptUnknownProperties(java.util.Map<java.lang.String,java.lang.Object> unknown)
User's unknown fields, only internal usage
|
@NotNull User |
clone()
Clones an User aka deep copy
|
@Nullable java.lang.String |
getEmail()
Gets the e-mail address of the user.
|
@Nullable java.lang.String |
getId()
Gets the id of the user.
|
@Nullable java.lang.String |
getIpAddress()
Gets the IP address of the user.
|
@Nullable java.util.Map<java.lang.String,java.lang.String> |
getOthers()
Gets other user related data.
|
@Nullable java.lang.String |
getUsername()
Gets the username of the user.
|
void |
setEmail(@Nullable java.lang.String email)
Gets the e-mail address of the user.
|
void |
setId(@Nullable java.lang.String id)
Sets the id of the user.
|
void |
setIpAddress(@Nullable java.lang.String ipAddress)
Sets the IP address of the user.
|
void |
setOthers(@Nullable java.util.Map<java.lang.String,java.lang.String> other)
Sets other user related data.
|
void |
setUsername(@Nullable java.lang.String username)
Sets the username of the user.
|
@Nullable public @Nullable java.lang.String getEmail()
public void setEmail(@Nullable @Nullable java.lang.String email)
email
- the e-mail.@Nullable public @Nullable java.lang.String getId()
public void setId(@Nullable @Nullable java.lang.String id)
id
- the user id.@Nullable public @Nullable java.lang.String getUsername()
public void setUsername(@Nullable @Nullable java.lang.String username)
username
- the username.@Nullable public @Nullable java.lang.String getIpAddress()
public void setIpAddress(@Nullable @Nullable java.lang.String ipAddress)
ipAddress
- the IP address of the user.@Nullable public @Nullable java.util.Map<java.lang.String,java.lang.String> getOthers()
public void setOthers(@Nullable @Nullable java.util.Map<java.lang.String,java.lang.String> other)
other
- the other user related data..@ApiStatus.Internal public void acceptUnknownProperties(java.util.Map<java.lang.String,java.lang.Object> unknown)
acceptUnknownProperties
in interface IUnknownPropertiesConsumer
unknown
- the unknown fields@NotNull public @NotNull User clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the User is not cloneable