com.aliyun.oss.model

## 类 GenericRequest

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

- 直接已知子类:
    AbortMultipartUploadRequest, AddBucketCnameRequest, AddBucketReplicationRequest, CompleteMultipartUploadRequest, CreateBucketRequest, CreateBucketVpcipRequest, CreateSymlinkRequest, CreateVpcipRequest, DeleteBucketCnameRequest, DeleteBucketInventoryConfigurationRequest, DeleteBucketReplicationRequest, DeleteBucketVpcipRequest, DeleteObjectsRequest, DeleteVersionRequest, DeleteVersionsRequest, DeleteVpcipRequest, DownloadFileRequest, GetAsyncFetchTaskRequest, GetBucketInventoryConfigurationRequest, GetBucketReplicationProgressRequest, GetObjectRequest, InitiateMultipartUploadRequest, ListBucketInventoryConfigurationsRequest, ListMultipartUploadsRequest, ListObjectsRequest, ListObjectsV2Request, ListPartsRequest, ListVersionsRequest, LiveChannelGenericRequest, OptionsRequest, ProcessObjectRequest, PutBucketImageRequest, PutImageStyleRequest, PutObjectRequest, RestoreObjectRequest, SetAsyncFetchTaskRequest, SetBucketAclRequest, SetBucketCORSRequest, SetBucketEncryptionRequest, SetBucketInventoryConfigurationRequest, SetBucketLifecycleRequest, SetBucketLoggingRequest, SetBucketPolicyRequest, SetBucketProcessRequest, SetBucketQosInfoRequest, SetBucketRefererRequest, SetBucketRequestPaymentRequest, SetBucketStorageCapacityRequest, SetBucketVersioningRequest, SetBucketWebsiteRequest, SetObjectAclRequest, SetTaggingRequest, UploadFileRequest, UploadPartRequest, VpcPolicy

      public class GenericRequest
      extends WebServiceRequest

  A generic request that contains some basic request options, such as bucket name, object key, costom headers, progress listener and so on.

- - ### 字段概要

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

      `NOOP`

  - ### 构造器概要

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

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBucketName()`
    `String` | `getKey()`
    `Payer` | `getRequestPayer()` * Gets the one who pays for the request
    `String` | `getVersionId()` Gets the optional version ID specifying which version of the object to operate.
    `void` | `setBucketName(String bucketName)`
    `void` | `setKey(String key)`
    `void` | `setRequestPayer(Payer payer)` * Sets the one who pays for the request The Third party should set request payer when requesting resources.
    `void` | `setVersionId(String versionId)` Sets the optional version ID specifying which version of the object to operate.
    `GenericRequest` | `withBucketName(String bucketName)`
    `GenericRequest` | `withKey(String key)`
    `GenericRequest` | `withRequestPayer(Payer payer)` * Sets the one who pays for the request The Third party should set request payer when requesting resources.
    `GenericRequest` | `withVersionId(String versionId)` Sets the optional version ID specifying which version of the object to download and returns this object, enabling additional method calls to be chained together.

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

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

    - #### GenericRequest

          public GenericRequest()

    - #### GenericRequest

          public GenericRequest(String bucketName)

    - #### GenericRequest

          public GenericRequest(String bucketName,
                        String key)

    - #### GenericRequest

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

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

    - #### setBucketName

          public void setBucketName(String bucketName)

    - #### withBucketName

          public GenericRequest withBucketName(String bucketName)

    - #### getKey

          public String getKey()

    - #### setKey

          public void setKey(String key)

    - #### withKey

          public GenericRequest withKey(String key)

    - #### getVersionId

          public String getVersionId()

      Gets the optional version ID specifying which version of the object to operate. If not specified, the most recent version will be operated.

      Objects created before versioning was enabled or when versioning is suspended are given the default `null` version ID (see `OSSConstants#NULL_VERSION_ID`). Note that the `null` version ID is a valid version ID and is not the same as not having a version ID.

      返回:
        The optional version ID specifying which version of the object to operate. If not specified, the most recent version will be operated.

    - #### setVersionId

          public void setVersionId(String versionId)

      Sets the optional version ID specifying which version of the object to operate. If not specified, the most recent version will be operated.

      Objects created before versioning was enabled or when versioning is suspended will be given the default `null` version ID (see `OSSConstants#NULL_VERSION_ID`). Note that the `null` version ID is a valid version ID and is not the same as not having a version ID.

      参数:
        `versionId` - The optional version ID specifying which version of the object to operate.

    - #### withVersionId

          public GenericRequest withVersionId(String versionId)

      Sets the optional version ID specifying which version of the object to download and returns this object, enabling additional method calls to be chained together. If not specified, the most recent version will be operated.

      Objects created before versioning was enabled or when versioning is suspended will be given the default or `null` version ID (see `OSSConstants#NULL_VERSION_ID`). Note that the `null` version ID is a valid version ID and is not the same as not having a version ID.

      参数:
        `versionId` - The optional version ID specifying which version of the object to operate.
      返回:
        The updated request object.

    - #### 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

    - #### withRequestPayer

          public GenericRequest withRequestPayer(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
      返回:
        The updated request object.

Copyright © 2020. All Rights Reserved.