|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.model.User
public class User
Represents the owner of an Baidu Bos bucket.
| Constructor Summary | |
|---|---|
User()
Constructs a new user without specifying an ID or display name. |
|
User(String id,
String displayName)
Constructs a new user with the specified ID and display name. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getDisplayName()
Gets the display name of the user. |
String |
getId()
Gets the ID of the user. |
int |
hashCode()
|
void |
setDisplayName(String displayName)
Sets the display name of the user. |
void |
setId(String id)
Sets the ID of the user. |
String |
toString()
|
User |
withDisplayName(String displayName)
Sets the display name of the user. |
User |
withId(String id)
Sets the ID of the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public User()
public User(String id,
String displayName)
id - The ID for the user.displayName - The display name for the user.| Method Detail |
|---|
public String getId()
public void setId(String id)
id - The ID of the user.public User withId(String id)
id - The ID of the user.public String getDisplayName()
public void setDisplayName(String displayName)
displayName - The display name of the user.public User withDisplayName(String displayName)
displayName - The display name of the user.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||