com.aliyun.oss.model

## 类 DeleteVersionsRequest

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

-     public class DeleteVersionsRequest
      extends GenericRequest

  Provides options for deleting multiple objects in a specified bucket. Once deleted, the object(s) can only be restored if versioning was enabled when the object(s) was deleted.
  另请参阅:
    `OSS#deleteVersions(DeleteVersionsRequest)`

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `DeleteVersionsRequest.KeyVersion` A key to delete, with an optional version attribute.

  - ### 字段概要

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

      `NOOP`

  - ### 构造器概要

    构造器
    构造器和说明
    `DeleteVersionsRequest(String bucketName)` Constructs a new `DeleteVersionsRequest`, specifying the objects' bucket name.

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<DeleteVersionsRequest.KeyVersion>` | `getKeys()` Returns the list of keys to delete from this bucket.
    `boolean` | `getQuiet()` Returns the quiet element for this request.
    `void` | `setKeys(List<DeleteVersionsRequest.KeyVersion> keys)` Sets the list of keys to delete from this bucket, clearing any existing list of keys.
    `void` | `setQuiet(boolean quiet)` Sets the quiet element for this request.
    `DeleteVersionsRequest` | `withBucketName(String bucketName)` Sets the name of the OSS bucket containing the object(s) to delete and returns this object, enabling additional method calls to be chained together.
    `DeleteVersionsRequest` | `withKeys(List<DeleteVersionsRequest.KeyVersion> keys)` Sets the list of keys to delete from this bucket, clearing any existing list of keys.
    `DeleteVersionsRequest` | `withQuiet(boolean quiet)` Sets the quiet element for this request.

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

      `getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, 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`

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

    - #### DeleteVersionsRequest

          public DeleteVersionsRequest(String bucketName)

      Constructs a new `DeleteVersionsRequest`, specifying the objects' bucket name.
      参数:
        `bucketName` - The name of the OSS bucket containing the object(s) to delete.

  - ### 方法详细资料

    - #### withBucketName

          public DeleteVersionsRequest withBucketName(String bucketName)

      Sets the name of the OSS bucket containing the object(s) to delete and returns this object, enabling additional method calls to be chained together.
      覆盖:
        `withBucketName` 在类中 `GenericRequest`
      参数:
        `bucketName` - The name of the OSS bucket containing the object(s) to delete.
      返回:
        The updated `DeleteVersionsRequest` object, enabling additional method calls to be chained together.

    - #### setQuiet

          public void setQuiet(boolean quiet)

      Sets the quiet element for this request. When true, only errors will be returned in the service response.

    - #### getQuiet

          public boolean getQuiet()

      Returns the quiet element for this request. When true, only errors will be returned in the service response.

    - #### withQuiet

          public DeleteVersionsRequest withQuiet(boolean quiet)

      Sets the quiet element for this request. When true, only errors will be returned in the service response.
      返回:
        this, to chain multiple calls together.

    - #### setKeys

          public void setKeys(List<DeleteVersionsRequest.KeyVersion> keys)

      Sets the list of keys to delete from this bucket, clearing any existing list of keys.
      参数:
        `keys` - The list of keys to delete from this bucket

    - #### withKeys

          public DeleteVersionsRequest withKeys(List<DeleteVersionsRequest.KeyVersion> keys)

      Sets the list of keys to delete from this bucket, clearing any existing list of keys.
      参数:
        `keys` - The list of keys to delete from this bucket
      返回:
        this, to chain multiple calls togethers.

    - #### getKeys

          public List<DeleteVersionsRequest.KeyVersion> getKeys()

      Returns the list of keys to delete from this bucket.

Copyright © 2020. All Rights Reserved.