public class DeleteObjectsRequest extends GenericRequest
bucketName, httpMethod, userHeaders
Constructor and Description |
---|
DeleteObjectsRequest() |
DeleteObjectsRequest(String bucketName)
Constructor
|
DeleteObjectsRequest(String bucketName,
boolean quiet,
KeyAndVersion[] keyAndVersions)
Constructor
|
DeleteObjectsRequest(String bucketName,
boolean quiet,
KeyAndVersion[] keyAndVersions,
String encodingType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setRequesterPays, setUserHeaders
public 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
in class GenericRequest
Copyright © 2021. All rights reserved.