com.obs.services.model

## 类 GenericRequest

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

- 直接已知子类:
    AbortMultipartUploadRequest, AbstractBulkRequest, BaseBucketRequest, BaseObjectRequest, CompleteMultipartUploadRequest, CopyPartRequest, DeleteObjectRequest, DeleteObjectsRequest, DownloadFileRequest, DropFileRequest, GetObjectAclRequest, GetObjectMetadataRequest, GetObjectRequest, ListContentSummaryRequest, ListMultipartUploadsRequest, ListObjectsRequest, ListPartsRequest, ListVersionsRequest, OptionsInfoRequest, PutObjectBasicRequest, RenameObjectRequest, RenameRequest, SetObjectMetadataRequest, TruncateFileRequest, TruncateObjectRequest, UploadPartRequest

      public class GenericRequest
      extends Object

  Basic class of all requests, which encapsulates common parameters used by all requests.
  从以下版本开始:
    3.20.3

- - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `isRequesterPays()` If the requester is allowed to pay, true is returned.
    `void` | `setRequesterPays(boolean isRequesterPays)` Used to configure whether to enable the requester-pays function.
    `String` | `toString()`

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

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

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

    - #### GenericRequest

          public GenericRequest()

  - ### 方法详细资料

    - #### isRequesterPays

          public boolean isRequesterPays()

      If the requester is allowed to pay, true is returned. Otherwise, false is returned.

      If the requester-pays function is enabled for a bucket, this attribute must be set to true when the bucket is requested by a requester other than the bucket owner. Otherwise, status code 403 is returned.

      After the requester-pays function is enabled, anonymous access to the bucket is not allowed.

      返回:
        If the requester is allowed to pay, true is returned. Otherwise, false is returned.

    - #### setRequesterPays

          public void setRequesterPays(boolean isRequesterPays)

      Used to configure whether to enable the requester-pays function.

      If the requester-pays function is enabled for a bucket, this attribute must be set to true when the bucket is requested by a requester other than the bucket owner. Otherwise, status code 403 is returned.

      After the requester-pays function is enabled, anonymous access to the bucket is not allowed.

      参数:
        `isRequesterPays` - True indicates to enable the requester-pays function. False indicates to disable the requester-pays function.

    - #### toString

          public String toString()

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

Copyright © 2021. All rights reserved.