com.aliyun.oss.model

## 类 Owner

- java.lang.Object
- - com.aliyun.oss.model.Owner

- 所有已实现的接口:
    Serializable

      public class Owner
      extends Object
      implements Serializable

  The entity class representing the owner of OSS `Bucket`.
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `Owner()` Constructor.
    `Owner(String id, String displayName)` Constructor.

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object obj)` Checks if the current object equals the specified one.
    `String` | `getDisplayName()` Gets the owner's display name
    `String` | `getId()` Gets the owner Id.
    `int` | `hashCode()` Gets the hash code.
    `void` | `setDisplayName(String name)` Sets the owner's display name.
    `void` | `setId(String id)` Sets the owner Id.
    `String` | `toString()` Serialization the owner information into string, including name and id.

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### Owner

          public Owner()

      Constructor.

    - #### Owner

          public Owner(String id,
               String displayName)

      Constructor.
      参数:
        `id` - Owner Id.
        `displayName` - Owner display name.

  - ### 方法详细资料

    - #### toString

          public String toString()

      Serialization the owner information into string, including name and id.
      覆盖:
        `toString` 在类中 `Object`

    - #### getId

          public String getId()

      Gets the owner Id.
      返回:
        Owner Id.

    - #### setId

          public void setId(String id)

      Sets the owner Id.
      参数:
        `id` - Owner Id.

    - #### getDisplayName

          public String getDisplayName()

      Gets the owner's display name
      返回:
        Owner's display name.

    - #### setDisplayName

          public void setDisplayName(String name)

      Sets the owner's display name.
      参数:
        `name` - Owner's display name.

    - #### equals

          public boolean equals(Object obj)

      Checks if the current object equals the specified one. Override the object.Equals() method. Both Id and name must be same to return true for this method.
      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      Gets the hash code. It uses the owner's Id's hashCode.
      覆盖:
        `hashCode` 在类中 `Object`

Copyright © 2020. All Rights Reserved.