com.netease.cloud.services.nos.model
public class DeleteObjectsRequest extends WebServiceRequest
Provides options for deleting multiple objects in a specified bucket. Once deleted, the object(s) can only be restored if versioning was enabled when the object(s) was deleted.
logID, logSeq
Constructor and Description |
---|
DeleteObjectsRequest(String bucketName)
Constructs a new
DeleteObjectsRequest , specifying the objects'
bucket name. |
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Gets the name of the bucket containing the object(s) to delete.
|
List<String> |
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 bucket containing the object(s) to delete.
|
void |
setKeys(List<String> 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 bucket containing the object(s) to delete and
returns this object, enabling additional method calls to be chained
together.
|
DeleteObjectsRequest |
withKeys(List<String> 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.
|
addSpecialHeader, copyPrivateRequestParameters, getAndIncrementLogSeq, getLogID, getLogSeq, getRequestClientOptions, getRequestCredentials, getToken, needSetLogInfo, setLogID, setLogSeq, setRequestCredentials, setToken
public DeleteObjectsRequest(String bucketName)
DeleteObjectsRequest
, specifying the objects'
bucket name.bucketName
- The name of the bucket containing the object(s) to delete.public String getBucketName()
setBucketName(String)
public void setBucketName(String bucketName)
bucketName
- The name of the bucket containing the object(s) to delete.getBucketName()
public DeleteObjectsRequest withBucketName(String bucketName)
bucketName
- The name of the 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<String> keys)
keys
- The list of keys to delete from this bucketpublic DeleteObjectsRequest withKeys(List<String> keys)
keys
- The list of keys to delete from this bucketpublic DeleteObjectsRequest withKeys(String... keys)
withKeys(List)
Copyright © 2017. All Rights Reserved.