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()
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
addAdditionalHeaderName, addHeader, addParameter, getAdditionalHeaderNames, getHeaders, getParameters, getProgressListener, isLogEnabled, setAdditionalHeaderNames, setHeaders, setLogEnabled, setParameters, setProgressListener, withProgressListener
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
in class 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 © 2021. All Rights Reserved.