public class DeleteObjectsRequest extends CosServiceRequest implements Serializable
COS#deleteObjects(DeleteObjectsRequest),
序列化表格| 限定符和类型 | 类和说明 |
|---|---|
static class |
DeleteObjectsRequest.KeyVersion
A key to delete, with an optional version attribute.
|
| 构造器和说明 |
|---|
DeleteObjectsRequest(String bucketName)
Constructs a new
DeleteObjectsRequest, specifying the objects' bucket name. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBucketName()
Gets the name of the COS bucket containing the object(s) to delete.
|
List<DeleteObjectsRequest.KeyVersion> |
getKeys()
Returns the list of keys to delete from this bucket.
|
boolean |
getQuiet()
Returns the quiet element for this request.
|
void |
setBucketName(String bucketName)
Sets the name of the COS bucket containing the object(s) to delete.
|
void |
setKeys(List<DeleteObjectsRequest.KeyVersion> keys)
Sets the list of keys to delete from this bucket, clearing any existing list of keys.
|
void |
setQuiet(boolean quiet)
Sets the quiet element for this request.
|
DeleteObjectsRequest |
withBucketName(String bucketName)
Sets the name of the COS bucket containing the object(s) to delete and returns this
object, enabling additional method calls to be chained together.
|
DeleteObjectsRequest |
withKeys(List<DeleteObjectsRequest.KeyVersion> keys)
Sets the list of keys to delete from this bucket, clearing any existing list of keys.
|
DeleteObjectsRequest |
withKeys(String... keys)
Convenience method to specify a set of keys without versions.
|
DeleteObjectsRequest |
withQuiet(boolean quiet)
Sets the quiet element for this request.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListenerpublic DeleteObjectsRequest(String bucketName)
DeleteObjectsRequest, specifying the objects' bucket name.bucketName - The name of the COS bucket containing the object(s) to delete.public String getBucketName()
setBucketName(String)public void setBucketName(String bucketName)
bucketName - The name of the COS bucket containing the object(s) to delete.getBucketName()public DeleteObjectsRequest withBucketName(String bucketName)
bucketName - The name of the COS bucket containing the object(s) to delete.DeleteObjectsRequest object, enabling additional method calls to
be chained together.public void setQuiet(boolean quiet)
public boolean getQuiet()
public DeleteObjectsRequest withQuiet(boolean quiet)
public void setKeys(List<DeleteObjectsRequest.KeyVersion> keys)
keys - The list of keys to delete from this bucketpublic DeleteObjectsRequest withKeys(List<DeleteObjectsRequest.KeyVersion> keys)
keys - The list of keys to delete from this bucketpublic List<DeleteObjectsRequest.KeyVersion> getKeys()
public DeleteObjectsRequest withKeys(String... keys)
withKeys(List)Copyright © 2020. All rights reserved.