public class DeleteObjectsRequest extends GenericRequest
bucketName, cancelHandler, httpMethod, userHeaders| 构造器 | 说明 |
|---|---|
DeleteObjectsRequest() |
|
DeleteObjectsRequest(String bucketName) |
Constructor
|
DeleteObjectsRequest(String bucketName,
boolean quiet,
KeyAndVersion[] keyAndVersions) |
Constructor
|
DeleteObjectsRequest(String bucketName,
boolean quiet,
KeyAndVersion[] keyAndVersions,
String encodingType) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
KeyAndVersion |
addKeyAndVersion(String objectKey) |
Add an object to be deleted.
|
KeyAndVersion |
addKeyAndVersion(String objectKey,
String versionId) |
Add an object to be deleted.
|
String |
getEncodingType() |
Get the encoding type that used for encode objectkey
|
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 |
setEncodingType(String encodingType) |
Set the encoding type that used for encode objectkey
|
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() |
addUserHeaders, getBucketName, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, setRequesterPays, setUserHeaderspublic DeleteObjectsRequest()
public DeleteObjectsRequest(String bucketName)
bucketName - Bucket namepublic DeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions)
bucketName - Bucket namequiet - 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 arraypublic DeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions, String encodingType)
bucketName - Bucket namequiet - 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 arrayencodingType - The encoding type use for encode objectKey.public boolean isQuiet()
public void setQuiet(boolean quiet)
quiet - Response mode of the object batch deletion requestpublic void setEncodingType(String encodingType)
encodingType - could chose url.public String getEncodingType()
public List<KeyAndVersion> getKeyAndVersionsList()
public KeyAndVersion addKeyAndVersion(String objectKey, String versionId)
objectKey - Object nameversionId - Version ID of the objectpublic KeyAndVersion addKeyAndVersion(String objectKey)
objectKey - Object namepublic KeyAndVersion[] getKeyAndVersions()
public void setKeyAndVersions(KeyAndVersion[] keyAndVersions)
keyAndVersions - To-be-deleted object arraypublic String toString()
toString 在类中 GenericRequestCopyright © 2025. All rights reserved.