public class DeleteVersionsRequest extends GenericRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
DeleteVersionsRequest.KeyVersion
A key to delete, with an optional version attribute.
|
NOOP| Constructor and Description |
|---|
DeleteVersionsRequest(String bucketName)
Constructs a new
DeleteVersionsRequest, specifying the objects'
bucket name. |
| Modifier and Type | Method and Description |
|---|---|
List<DeleteVersionsRequest.KeyVersion> |
getKeys()
Gets the list of keys to delete from this bucket.
|
boolean |
getQuiet()
Gets 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, withVersionIdaddAdditionalHeaderName, addHeader, addParameter, getAdditionalHeaderNames, getEndpoint, getHeaders, getParameters, getProgressListener, isLogEnabled, setAdditionalHeaderNames, setEndpoint, setHeaders, setLogEnabled, setParameters, setProgressListener, withProgressListenerpublic 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 in class GenericRequestbucketName - 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)
quiet - Sets the quiet element for this request.public boolean getQuiet()
public DeleteVersionsRequest withQuiet(boolean quiet)
quiet - the flag for this request.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 © 2023. All Rights Reserved.