## 类 com.aliyun.oss.model.SetBucketCORSRequest.CORSRule
的使用

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

- - ### com.aliyun.oss中SetBucketCORSRequest.CORSRule的使用

    返回变量类型为SetBucketCORSRequest.CORSRule的类型的com.aliyun.oss中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<SetBucketCORSRequest.CORSRule>` | OSSClient.`getBucketCORSRules(GenericRequest genericRequest)`
    `List<SetBucketCORSRequest.CORSRule>` | OSS.`getBucketCORSRules(GenericRequest genericRequest)` Lists all CORS rules from the bucket.
    `List<SetBucketCORSRequest.CORSRule>` | OSSClient.`getBucketCORSRules(String bucketName)`
    `List<SetBucketCORSRequest.CORSRule>` | OSS.`getBucketCORSRules(String bucketName)` Lists all CORS rules from the bucket.

  - ### com.aliyun.oss.model中SetBucketCORSRequest.CORSRule的使用

    返回变量类型为SetBucketCORSRequest.CORSRule的类型的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<SetBucketCORSRequest.CORSRule>` | SetBucketCORSRequest.`getCorsRules()`
    `List<SetBucketCORSRequest.CORSRule>` | CORSConfiguration.`getCorsRules()`

    参数类型为SetBucketCORSRequest.CORSRule的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | SetBucketCORSRequest.`addCorsRule(SetBucketCORSRequest.CORSRule corsRule)`

    类型变量类型为SetBucketCORSRequest.CORSRule的com.aliyun.oss.model中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `void` | SetBucketCORSRequest.`setCorsRules(List<SetBucketCORSRequest.CORSRule> corsRules)`
    `void` | CORSConfiguration.`setCorsRules(List<SetBucketCORSRequest.CORSRule> rules)`

Copyright © 2020. All Rights Reserved.