com.obs.services.model

## 类 DeleteObjectsRequest

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

-     public class DeleteObjectsRequest
      extends GenericRequest

  Parameters in an object batch deletion request

- - ### 构造器概要

    构造器
    构造器和说明
    `DeleteObjectsRequest()`
    `DeleteObjectsRequest(String bucketName)` Constructor
    `DeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions)` Constructor

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `KeyAndVersion` | `addKeyAndVersion(String objectKey)` Add an object to be deleted.
    `KeyAndVersion` | `addKeyAndVersion(String objectKey, String versionId)` Add an object to be deleted.
    `String` | `getBucketName()` Obtain the bucket name.
    `KeyAndVersion[]` | `getKeyAndVersions()` Obtain the to-be-deleted object array.
    `List<KeyAndVersion>` | `getKeyAndVersionsList()` Obtain the list of to-be-deleted objects.
    `boolean` | `isQuiet()` Obtain the response mode of the batch deletion.
    `void` | `setBucketName(String bucketName)` Set the bucket name.
    `void` | `setKeyAndVersions(KeyAndVersion[] keyAndVersions)` Specify the to-be-deleted object array.
    `void` | `setQuiet(boolean quiet)` Set the response mode for the batch deletion.
    `String` | `toString()`

    - ### 从类继承的方法 com.obs.services.model.GenericRequest

      `isRequesterPays, setRequesterPays`

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

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

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

    - #### DeleteObjectsRequest

          public DeleteObjectsRequest()

    - #### DeleteObjectsRequest

          public DeleteObjectsRequest(String bucketName)

      Constructor
      参数:
        `bucketName` - Bucket name

    - #### DeleteObjectsRequest

          public DeleteObjectsRequest(String bucketName,
                                      boolean quiet,
                                      KeyAndVersion[] keyAndVersions)

      Constructor
      参数:
        `bucketName` - Bucket name
        `quiet` - Deletion response mode. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.
        `keyAndVersions` - To-be-deleted object array

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

      Obtain the bucket name.
      返回:
        Bucket name

    - #### setBucketName

          public void setBucketName(String bucketName)

      Set the bucket name.
      参数:
        `bucketName` - Bucket name

    - #### isQuiet

          public boolean isQuiet()

      Obtain the response mode of the batch deletion. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.
      返回:
        Response mode of the object batch deletion request

    - #### setQuiet

          public void setQuiet(boolean quiet)

      Set the response mode for the batch deletion. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.
      参数:
        `quiet` - Response mode of the object batch deletion request

    - #### getKeyAndVersionsList

          public List<KeyAndVersion> getKeyAndVersionsList()

      Obtain the list of to-be-deleted objects.
      返回:
        List of to-be-deleted objects

    - #### addKeyAndVersion

          public KeyAndVersion addKeyAndVersion(String objectKey,
                                                String versionId)

      Add an object to be deleted.
      参数:
        `objectKey` - Object name
        `versionId` - Version ID of the object
      返回:
        Object newly added to the deletion list

    - #### addKeyAndVersion

          public KeyAndVersion addKeyAndVersion(String objectKey)

      Add an object to be deleted.
      参数:
        `objectKey` - Object name
      返回:
        Object newly added to the deletion list

    - #### getKeyAndVersions

          public KeyAndVersion[] getKeyAndVersions()

      Obtain the to-be-deleted object array.
      返回:
        To-be-deleted object array

    - #### setKeyAndVersions

          public void setKeyAndVersions(KeyAndVersion[] keyAndVersions)

      Specify the to-be-deleted object array.
      参数:
        `keyAndVersions` - To-be-deleted object array

    - #### toString

          public String toString()

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

Copyright © 2021. All rights reserved.