com.aliyun.oss.model

## 类 OptionsRequest

- java.lang.Object
- - com.aliyun.oss.model.WebServiceRequest
  - - com.aliyun.oss.model.GenericRequest
    - - com.aliyun.oss.model.OptionsRequest

-     public class OptionsRequest
      extends GenericRequest

- - ### 字段概要

    - ### 从类继承的字段 com.aliyun.oss.model.WebServiceRequest

      `NOOP`

  - ### 构造器概要

    构造器
    构造器和说明
    `OptionsRequest()`
    `OptionsRequest(String bucketName, String key)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getObjectName()` 已过时。
    `String` | `getOrigin()`
    `String` | `getRequestHeaders()`
    `HttpMethod` | `getRequestMethod()`
    `void` | `setObjectName(String objectName)` 已过时。
    `void` | `setOrigin(String origin)`
    `void` | `setRequestHeaders(String requestHeaders)`
    `void` | `setRequestMethod(HttpMethod requestMethod)`
    `OptionsRequest` | `withOrigin(String origin)`
    `OptionsRequest` | `withRequestHeaders(String requestHeaders)`
    `OptionsRequest` | `withRequestMethod(HttpMethod requestMethod)`

    - ### 从类继承的方法 com.aliyun.oss.model.GenericRequest

      `getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, withBucketName, withKey, withRequestPayer, withVersionId`

    - ### 从类继承的方法 com.aliyun.oss.model.WebServiceRequest

      `addAdditionalHeaderName, addHeader, addParameter, getAdditionalHeaderNames, getHeaders, getParameters, getProgressListener, isLogEnabled, setAdditionalHeaderNames, setHeaders, setLogEnabled, setParameters, setProgressListener, withProgressListener`

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

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

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

    - #### OptionsRequest

          public OptionsRequest()

    - #### OptionsRequest

          public OptionsRequest(String bucketName,
                        String key)

  - ### 方法详细资料

    - #### getOrigin

          public String getOrigin()

    - #### setOrigin

          public void setOrigin(String origin)

    - #### withOrigin

          public OptionsRequest withOrigin(String origin)

    - #### getRequestMethod

          public HttpMethod getRequestMethod()

    - #### setRequestMethod

          public void setRequestMethod(HttpMethod requestMethod)

    - #### withRequestMethod

          public OptionsRequest withRequestMethod(HttpMethod requestMethod)

    - #### getRequestHeaders

          public String getRequestHeaders()

    - #### setRequestHeaders

          public void setRequestHeaders(String requestHeaders)

    - #### withRequestHeaders

          public OptionsRequest withRequestHeaders(String requestHeaders)

    - #### getObjectName

          @Deprecated
          public String getObjectName()

      已过时。

    - #### setObjectName

          @Deprecated
          public void setObjectName(String objectName)

      已过时。

Copyright © 2020. All Rights Reserved.