类 User
- java.lang.Object
-
- com.baidubce.model.User
-
public class User extends Object
Represents the owner of an Baidu Bos bucket.
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object obj)StringgetDisplayName()Gets the display name of the user.StringgetId()Gets the ID of the user.inthashCode()voidsetDisplayName(String displayName)Sets the display name of the user.voidsetId(String id)Sets the ID of the user.StringtoString()UserwithDisplayName(String displayName)Sets the display name of the user.UserwithId(String id)Sets the ID of the user.
-
-
-
方法详细资料
-
getId
public String getId()
Gets the ID of the user.- 返回:
- The ID of the user.
-
setId
public void setId(String id)
Sets the ID of the user.- 参数:
id- The ID of the user.
-
withId
public User withId(String id)
Sets the ID of the user.- 参数:
id- The ID of the user.- 返回:
- this object
-
getDisplayName
public String getDisplayName()
Gets the display name of the user.- 返回:
- The display name of the user.
-
setDisplayName
public void setDisplayName(String displayName)
Sets the display name of the user.- 参数:
displayName- The display name of the user.
-
withDisplayName
public User withDisplayName(String displayName)
Sets the display name of the user.- 参数:
displayName- The display name of the user.- 返回:
- this object
-
-