com.aliyun.oss.model

## 类 SetBucketCORSRequest.CORSRule

- java.lang.Object
- - com.aliyun.oss.model.SetBucketCORSRequest.CORSRule

- 封闭类:
    SetBucketCORSRequest

      public static class SetBucketCORSRequest.CORSRule
      extends Object

- - ### 构造器概要

    构造器
    构造器和说明
    `SetBucketCORSRequest.CORSRule()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addAllowdOrigin(String allowedOrigin)`
    `void` | `addAllowedHeader(String allowedHeader)`
    `void` | `addAllowedMethod(String allowedMethod)`
    `void` | `addExposeHeader(String exposeHeader)`
    `void` | `clearAllowedHeaders()`
    `void` | `clearAllowedMethods()`
    `void` | `clearAllowedOrigins()`
    `void` | `clearExposeHeaders()`
    `List<String>` | `getAllowedHeaders()`
    `List<String>` | `getAllowedMethods()`
    `List<String>` | `getAllowedOrigins()`
    `List<String>` | `getExposeHeaders()`
    `Integer` | `getMaxAgeSeconds()`
    `void` | `setAllowedHeaders(List<String> allowedHeaders)`
    `void` | `setAllowedMethods(List<String> allowedMethods)`
    `void` | `setAllowedOrigins(List<String> allowedOrigins)`
    `void` | `setExposeHeaders(List<String> exposeHeaders)`
    `void` | `setMaxAgeSeconds(Integer maxAgeSeconds)`

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

    - #### SetBucketCORSRequest.CORSRule

          public SetBucketCORSRequest.CORSRule()

  - ### 方法详细资料

    - #### addAllowdOrigin

          public void addAllowdOrigin(String allowedOrigin)

    - #### getAllowedOrigins

          public List<String> getAllowedOrigins()

    - #### setAllowedOrigins

          public void setAllowedOrigins(List<String> allowedOrigins)

    - #### clearAllowedOrigins

          public void clearAllowedOrigins()

    - #### addAllowedMethod

          public void addAllowedMethod(String allowedMethod)

    - #### getAllowedMethods

          public List<String> getAllowedMethods()

    - #### setAllowedMethods

          public void setAllowedMethods(List<String> allowedMethods)

    - #### clearAllowedMethods

          public void clearAllowedMethods()

    - #### addAllowedHeader

          public void addAllowedHeader(String allowedHeader)

    - #### getAllowedHeaders

          public List<String> getAllowedHeaders()

    - #### setAllowedHeaders

          public void setAllowedHeaders(List<String> allowedHeaders)

    - #### clearAllowedHeaders

          public void clearAllowedHeaders()

    - #### addExposeHeader

          public void addExposeHeader(String exposeHeader)

    - #### getExposeHeaders

          public List<String> getExposeHeaders()

    - #### setExposeHeaders

          public void setExposeHeaders(List<String> exposeHeaders)

    - #### clearExposeHeaders

          public void clearExposeHeaders()

    - #### getMaxAgeSeconds

          public Integer getMaxAgeSeconds()

    - #### setMaxAgeSeconds

          public void setMaxAgeSeconds(Integer maxAgeSeconds)

Copyright © 2020. All Rights Reserved.