com.aliyun.oss.model

## 枚举 ObjectPermission

- java.lang.Object
- - java.lang.Enum<ObjectPermission>
  - - com.aliyun.oss.model.ObjectPermission

- 所有已实现的接口:
    Serializable, Comparable<ObjectPermission>

      public enum ObjectPermission
      extends Enum<ObjectPermission>

  The enum of `OSSObject`'s access control permission.

- - ### 枚举常量概要

    枚举常量
    枚举常量和说明
    `Default` The object's ACL inherits the bucket's ACL.
    `Private` Private object.
    `PublicRead` Owner has the full control of the object.
    `PublicReadWrite` The object is public to everyone and all users have read write permission.
    `Unknown` The object's ACL is unknown, which indicates something not right about the object.

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `static ObjectPermission` | `parsePermission(String str)`
    `String` | `toString()`
    `static ObjectPermission` | `valueOf(String name)` 返回带有指定名称的该类型的枚举常量。
    `static ObjectPermission[]` | `values()` 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

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

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf`

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

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### 枚举常量详细资料

    - #### Private

          public static final ObjectPermission Private

      Private object. Only the owner has the full control of the object. Other users don't have access permission unless they're explicitly granted with some permission.

    - #### PublicRead

          public static final ObjectPermission PublicRead

      Owner has the full control of the object. Other users only have read access.

    - #### PublicReadWrite

          public static final ObjectPermission PublicReadWrite

      The object is public to everyone and all users have read write permission.

    - #### Default

          public static final ObjectPermission Default

      The object's ACL inherits the bucket's ACL. For example, if the bucket is private, then the object is also private.

    - #### Unknown

          public static final ObjectPermission Unknown

      The object's ACL is unknown, which indicates something not right about the object. Please contact OSS support for more information when this happens.

  - ### 方法详细资料

    - #### values

          public static ObjectPermission[] values()

      按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:

          for (ObjectPermission c : ObjectPermission.values())
              System.out.println(c);

      返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组

    - #### valueOf

          public static ObjectPermission valueOf(String name)

      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
        `name` - 要返回的枚举常量的名称。
      返回:
        返回带有指定名称的枚举常量
      抛出:
        `IllegalArgumentException` - 如果该枚举类型没有带有指定名称的常量
        `NullPointerException` - 如果参数为空值

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Enum<ObjectPermission>`

    - #### parsePermission

          public static ObjectPermission parsePermission(String str)

Copyright © 2020. All Rights Reserved.