类 User


  • public class User
    extends Object
    Represents the owner of an Baidu Bos bucket.
    • 构造器详细资料

      • User

        public User()
        Constructs a new user without specifying an ID or display name.
      • User

        public User​(String id,
                    String displayName)
        Constructs a new user with the specified ID and display name.
        参数:
        id - The ID for the user.
        displayName - The display name for 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
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object