## 类 com.aliyun.oss.model.CannedAccessControlList
的使用

- 使用CannedAccessControlList的程序包
  程序包 | 说明
  --- | ---
  com.aliyun.oss |
  com.aliyun.oss.model |

- - ### com.aliyun.oss中CannedAccessControlList的使用

    参数类型为CannedAccessControlList的com.aliyun.oss中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | OSSClient.`setBucketAcl(String bucketName, CannedAccessControlList cannedACL)`
    `void` | OSS.`setBucketAcl(String bucketName, CannedAccessControlList acl)` Applies the Access Control List(ACL) on the `Bucket`.
    `void` | OSSClient.`setObjectAcl(String bucketName, String key, CannedAccessControlList cannedACL)`
    `void` | OSS.`setObjectAcl(String bucketName, String key, CannedAccessControlList cannedAcl)` Sets the Access Control List (ACL) on a `OSSObject` instance.

  - ### com.aliyun.oss.model中CannedAccessControlList的使用

    返回CannedAccessControlList的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `CannedAccessControlList` | SetObjectAclRequest.`getCannedACL()`
    `CannedAccessControlList` | SetBucketAclRequest.`getCannedACL()`
    `CannedAccessControlList` | CreateBucketRequest.`getCannedACL()`
    `CannedAccessControlList` | BucketInfo.`getCannedACL()`
    `CannedAccessControlList` | AccessControlList.`getCannedACL()` Gets the canned ACL.
    `CannedAccessControlList` | CompleteMultipartUploadRequest.`getObjectACL()` Gets Object ACL。
    `static CannedAccessControlList` | CannedAccessControlList.`parse(String acl)`
    `static CannedAccessControlList` | CannedAccessControlList.`valueOf(String name)` 返回带有指定名称的该类型的枚举常量。
    `static CannedAccessControlList[]` | CannedAccessControlList.`values()` 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

    参数类型为CannedAccessControlList的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | SetObjectAclRequest.`setCannedACL(CannedAccessControlList cannedACL)`
    `void` | SetBucketAclRequest.`setCannedACL(CannedAccessControlList cannedACL)`
    `void` | CreateBucketRequest.`setCannedACL(CannedAccessControlList cannedACL)`
    `void` | BucketInfo.`setCannedACL(CannedAccessControlList cannedACL)`
    `void` | AccessControlList.`setCannedACL(CannedAccessControlList cannedACL)` Sets the ACL.
    `void` | ObjectMetadata.`setObjectAcl(CannedAccessControlList cannedAcl)` Sets the object ACL.
    `void` | CompleteMultipartUploadRequest.`setObjectACL(CannedAccessControlList cannedACL)` Sets Object ACL。
    `SetObjectAclRequest` | SetObjectAclRequest.`withCannedACL(CannedAccessControlList cannedACL)`
    `SetBucketAclRequest` | SetBucketAclRequest.`withCannedACL(CannedAccessControlList cannedACL)`
    `CreateBucketRequest` | CreateBucketRequest.`withCannedACL(CannedAccessControlList cannedACL)`

    参数类型为CannedAccessControlList的com.aliyun.oss.model中的构造器
    构造器和说明
    `SetBucketAclRequest(String bucketName, CannedAccessControlList cannedACL)`
    `SetObjectAclRequest(String bucketName, String key, CannedAccessControlList cannedACL)`
    `SetObjectAclRequest(String bucketName, String key, String veresionId, CannedAccessControlList cannedACL)`

Copyright © 2020. All Rights Reserved.