public class DeleteObjectsRequest extends GenericRequest
Constructor and Description |
---|
DeleteObjectsRequest() |
DeleteObjectsRequest(String bucketName)
构造函数
|
DeleteObjectsRequest(String bucketName,
boolean quiet,
KeyAndVersion[] keyAndVersions)
构造函数
|
Modifier and Type | Method and Description |
---|---|
KeyAndVersion |
addKeyAndVersion(String objectKey)
新增待删除的对象
|
KeyAndVersion |
addKeyAndVersion(String objectKey,
String versionId)
新增待删除的对象
|
String |
getBucketName()
获取桶名
|
KeyAndVersion[] |
getKeyAndVersions()
获取待删除对象数组
|
List<KeyAndVersion> |
getKeyAndVersionsList()
获取待删除对象列表
|
boolean |
isQuiet()
获取批量删除对象的响应模式,false时使用verbose模式, true时使用quiet模式
|
void |
setBucketName(String bucketName)
设置桶名
|
void |
setKeyAndVersions(KeyAndVersion[] keyAndVersions)
设置待删除对象数组
|
void |
setQuiet(boolean quiet)
设置批量删除对象的响应模式,false时使用verbose模式, true时使用quiet模式
|
String |
toString() |
isRequesterPays, setRequesterPays
public DeleteObjectsRequest()
public DeleteObjectsRequest(String bucketName)
bucketName
- 桶名public DeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions)
bucketName
- 桶名quiet
- 删除响应方式,false时使用verbose模式,true时使用quiet模式keyAndVersions
- 待删除对象数组public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- 桶名public boolean isQuiet()
public void setQuiet(boolean quiet)
quiet
- 批量删除对象的响应模式public List<KeyAndVersion> getKeyAndVersionsList()
public KeyAndVersion addKeyAndVersion(String objectKey, String versionId)
objectKey
- 对象名versionId
- 对象版本号public KeyAndVersion addKeyAndVersion(String objectKey)
objectKey
- 对象名public KeyAndVersion[] getKeyAndVersions()
public void setKeyAndVersions(KeyAndVersion[] keyAndVersions)
keyAndVersions
- 待删除对象数组public String toString()
toString
in class GenericRequest
Copyright © 2021. All rights reserved.