public class DeleteVersionsRequest extends GenericRequest
OSS#deleteVersions(DeleteVersionsRequest)
限定符和类型 | 类和说明 |
---|---|
static class |
DeleteVersionsRequest.KeyVersion
A key to delete, with an optional version attribute.
|
NOOP
构造器和说明 |
---|
DeleteVersionsRequest(String bucketName)
Constructs a new
DeleteVersionsRequest , specifying the objects'
bucket name. |
限定符和类型 | 方法和说明 |
---|---|
List<DeleteVersionsRequest.KeyVersion> |
getKeys()
Returns the list of keys to delete from this bucket.
|
boolean |
getQuiet()
Returns the quiet element for this request.
|
void |
setKeys(List<DeleteVersionsRequest.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.
|
DeleteVersionsRequest |
withBucketName(String bucketName)
Sets the name of the OSS bucket containing the object(s) to delete
and returns this object, enabling additional method calls to be chained
together.
|
DeleteVersionsRequest |
withKeys(List<DeleteVersionsRequest.KeyVersion> keys)
Sets the list of keys to delete from this bucket, clearing any existing
list of keys.
|
DeleteVersionsRequest |
withQuiet(boolean quiet)
Sets the quiet element for this request.
|
getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, withKey, withRequestPayer, withVersionId
public DeleteVersionsRequest(String bucketName)
DeleteVersionsRequest
, specifying the objects'
bucket name.bucketName
- The name of the OSS bucket containing the object(s) to delete.public DeleteVersionsRequest withBucketName(String bucketName)
withBucketName
在类中 GenericRequest
bucketName
- The name of the OSS bucket containing the object(s) to delete.DeleteVersionsRequest
object, enabling
additional method calls to be chained together.public void setQuiet(boolean quiet)
public boolean getQuiet()
public DeleteVersionsRequest withQuiet(boolean quiet)
public void setKeys(List<DeleteVersionsRequest.KeyVersion> keys)
keys
- The list of keys to delete from this bucketpublic DeleteVersionsRequest withKeys(List<DeleteVersionsRequest.KeyVersion> keys)
keys
- The list of keys to delete from this bucketpublic List<DeleteVersionsRequest.KeyVersion> getKeys()
Copyright © 2019. All Rights Reserved.