## 类的使用
com.obs.services.model.KeyAndVersion

- 使用KeyAndVersion的程序包
  程序包 | 说明
  --- | ---
  com.obs.services.model |

- - ### com.obs.services.model中KeyAndVersion的使用

    返回KeyAndVersion的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `KeyAndVersion` | DeleteObjectsRequest.`addKeyAndVersion(String objectKey)` Add an object to be deleted.
    `KeyAndVersion` | RestoreObjectsRequest.`addKeyAndVersion(String objectKey)` Add an object to be restored.
    `KeyAndVersion` | DeleteObjectsRequest.`addKeyAndVersion(String objectKey, String versionId)` Add an object to be deleted.
    `KeyAndVersion` | RestoreObjectsRequest.`addKeyAndVersion(String objectKey, String versionId)` Add an object to be restored.
    `KeyAndVersion[]` | DeleteObjectsRequest.`getKeyAndVersions()` Obtain the to-be-deleted object array.

    返回变量类型为KeyAndVersion的类型的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<KeyAndVersion>` | RestoreObjectsRequest.`getKeyAndVersions()` Obtain the list of objects to be restored.
    `List<KeyAndVersion>` | DeleteObjectsRequest.`getKeyAndVersionsList()` Obtain the list of to-be-deleted objects.

    参数类型为KeyAndVersion的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | DeleteObjectsRequest.`setKeyAndVersions(KeyAndVersion[] keyAndVersions)` Specify the to-be-deleted object array.

    类型变量类型为KeyAndVersion的com.obs.services.model中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `void` | RestoreObjectsRequest.`setKeyAndVersions(List<KeyAndVersion> keyAndVersions)` Set the list of objects to be restored.

    参数类型为KeyAndVersion的com.obs.services.model中的构造器
    构造器和说明
    `DeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions)` Constructor

Copyright © 2021. All rights reserved.