com.obs.services.model

## 类 BucketCorsRule

- java.lang.Object
- - com.obs.services.model.BucketCorsRule

-     public class BucketCorsRule
      extends Object

  Bucket CORS rules

- - ### 构造器概要

    构造器
    构造器和说明
    `BucketCorsRule()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<String>` | `getAllowedHeader()` Obtain the list of request headers allowed by the CORS rules.
    `List<String>` | `getAllowedMethod()` Obtain the list of methods allowed by the CORS rules.
    `List<String>` | `getAllowedOrigin()` Obtain the list of origins (character strings representing domain names) allowed by the CORS rules.
    `List<String>` | `getExposeHeader()` Obtain the additional response headers allowed by the CORS rules.
    `String` | `getId()` Obtain the CORS rule ID.
    `int` | `getMaxAgeSecond()` Obtain the cache duration (in seconds) of the request result in the instance of ObsClient.
    `void` | `setAllowedHeader(List<String> allowedHeader)` Set the list of request headers allowed by the CORS rules.
    `void` | `setAllowedMethod(List<String> allowedMethod)` Set the methods allowed by the CORS rules.
    `void` | `setAllowedOrigin(List<String> allowedOrigin)` Set the list of origins (character strings representing domain names) allowed by the CORS rules.
    `void` | `setExposeHeader(List<String> exposeHeader)` Specify the additional response headers allowed by the CORS rules.
    `void` | `setId(String id)` Set the CORS rule ID.
    `void` | `setMaxAgeSecond(int maxAgeSecond)` Set the cache duration (in seconds) of the request result in the instance of ObsClient.
    `String` | `toString()`

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

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

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

    - #### BucketCorsRule

          public BucketCorsRule()

  - ### 方法详细资料

    - #### getId

          public String getId()

      Obtain the CORS rule ID.
      返回:
        CORS rule ID

    - #### setId

          public void setId(String id)

      Set the CORS rule ID.
      参数:
        `id` - CORS rule ID

    - #### getMaxAgeSecond

          public int getMaxAgeSecond()

      Obtain the cache duration (in seconds) of the request result in the instance of ObsClient.
      返回:
        Cache duration

    - #### setMaxAgeSecond

          public void setMaxAgeSecond(int maxAgeSecond)

      Set the cache duration (in seconds) of the request result in the instance of ObsClient.
      参数:
        `maxAgeSecond` - Cache duration

    - #### getAllowedMethod

          public List<String> getAllowedMethod()

      Obtain the list of methods allowed by the CORS rules.
      返回:
        Method list

    - #### setAllowedMethod

          public void setAllowedMethod(List<String> allowedMethod)

      Set the methods allowed by the CORS rules. Possible values are GET, PUT, DELETE, POST, and HEAD.
      参数:
        `allowedMethod` - Method list

    - #### getAllowedOrigin

          public List<String> getAllowedOrigin()

      Obtain the list of origins (character strings representing domain names) allowed by the CORS rules.
      返回:
        List of request origins

    - #### setAllowedOrigin

          public void setAllowedOrigin(List<String> allowedOrigin)

      Set the list of origins (character strings representing domain names) allowed by the CORS rules.
      参数:
        `allowedOrigin` - List of request origins

    - #### getAllowedHeader

          public List<String> getAllowedHeader()

      Obtain the list of request headers allowed by the CORS rules.
      返回:
        List of request headers

    - #### setAllowedHeader

          public void setAllowedHeader(List<String> allowedHeader)

      Set the list of request headers allowed by the CORS rules.
      参数:
        `allowedHeader` - List of request headers

    - #### getExposeHeader

          public List<String> getExposeHeader()

      Obtain the additional response headers allowed by the CORS rules.
      返回:
        List of additional headers

    - #### setExposeHeader

          public void setExposeHeader(List<String> exposeHeader)

      Specify the additional response headers allowed by the CORS rules.
      参数:
        `exposeHeader` - List of additional headers

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`

Copyright © 2021. All rights reserved.