com.aliyun.oss.model

## 类 HeadObjectRequest

- java.lang.Object
- - com.aliyun.oss.model.WebServiceRequest
  - - com.aliyun.oss.model.HeadObjectRequest

- 直接已知子类:
    CreateSelectObjectMetadataRequest

      public class HeadObjectRequest
      extends WebServiceRequest

  Options for checking if the object key exists under the specified bucket.

- - ### 字段概要

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

      `NOOP`

  - ### 构造器概要

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

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBucketName()`
    `String` | `getKey()`
    `List<String>` | `getMatchingETagConstraints()`
    `Date` | `getModifiedSinceConstraint()`
    `List<String>` | `getNonmatchingETagConstraints()`
    `Payer` | `getRequestPayer()` * Gets the one who pays for the request
    `Date` | `getUnmodifiedSinceConstraint()`
    `String` | `getVersionId()` Gets version id.
    `void` | `setBucketName(String bucketName)`
    `void` | `setKey(String key)`
    `void` | `setMatchingETagConstraints(List<String> matchingETagConstraints)`
    `void` | `setModifiedSinceConstraint(Date modifiedSinceConstraint)`
    `void` | `setNonmatchingETagConstraints(List<String> nonmatchingETagConstraints)`
    `void` | `setRequestPayer(Payer payer)` * Sets the one who pays for the request The Third party should set request payer when requesting resources.
    `void` | `setUnmodifiedSinceConstraint(Date unmodifiedSinceConstraint)`
    `void` | `setVersionId(String versionId)` Sets version id.

    - ### 从类继承的方法 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`

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

    - #### HeadObjectRequest

          public HeadObjectRequest(String bucketName,
                           String key,
                           String versionId)

    - #### HeadObjectRequest

          public HeadObjectRequest(String bucketName,
                           String key)

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

    - #### setBucketName

          public void setBucketName(String bucketName)

    - #### getKey

          public String getKey()

    - #### setKey

          public void setKey(String key)

    - #### getMatchingETagConstraints

          public List<String> getMatchingETagConstraints()

    - #### setMatchingETagConstraints

          public void setMatchingETagConstraints(List<String> matchingETagConstraints)

    - #### getNonmatchingETagConstraints

          public List<String> getNonmatchingETagConstraints()

    - #### setNonmatchingETagConstraints

          public void setNonmatchingETagConstraints(List<String> nonmatchingETagConstraints)

    - #### getUnmodifiedSinceConstraint

          public Date getUnmodifiedSinceConstraint()

    - #### setUnmodifiedSinceConstraint

          public void setUnmodifiedSinceConstraint(Date unmodifiedSinceConstraint)

    - #### getModifiedSinceConstraint

          public Date getModifiedSinceConstraint()

    - #### setModifiedSinceConstraint

          public void setModifiedSinceConstraint(Date modifiedSinceConstraint)

    - #### getVersionId

          public String getVersionId()

      Gets version id.
      返回:
        version id.

    - #### setVersionId

          public void setVersionId(String versionId)

      Sets version id.
      参数:
        `versionId` -

    - #### setRequestPayer

          public void setRequestPayer(Payer payer)

      *

      Sets the one who pays for the request The Third party should set request payer when requesting resources.

      参数:
        `payer` - The one who pays for the request

    - #### getRequestPayer

          public Payer getRequestPayer()

      *

      Gets the one who pays for the request

      返回:
        The one who pays for the request

Copyright © 2020. All Rights Reserved.