public class DeleteObjectRequest extends CosServiceRequest implements Serializable
Constructor and Description |
---|
DeleteObjectRequest(String bucketName,
String key)
Constructs a new
DeleteObjectRequest , specifying the object's bucket name and key. |
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Gets the name of the Qcloud COS bucket containing the object to delete.
|
String |
getKey()
Gets the key of the object to delete.
|
boolean |
isRecursive() |
void |
setBucketName(String bucketName)
Sets the name of the Qcloud COS bucket containing the object to delete.
|
void |
setKey(String key)
Sets the key of the object to delete.
|
void |
setRecursive(boolean isRecursive) |
DeleteObjectRequest |
withBucketName(String bucketName)
Sets the name of the Qcloud COS bucket containing the object to delete and returns this
object, enabling additional method calls to be chained together.
|
DeleteObjectRequest |
withKey(String key)
Sets the key of the object to delete and returns this object, enabling additional method
calls to be chained together.
|
clone, copyBaseTo, getCiSpecialEndParameter, getCloneRoot, getCloneSource, getCosCredentials, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setCiSpecialEndParameter, setCosCredentials, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListener
public DeleteObjectRequest(String bucketName, String key)
DeleteObjectRequest
, specifying the object's bucket name and key.bucketName
- The name of the Qcloud COS bucket containing the object to delete.key
- The key of the object to delete.public String getBucketName()
setBucketName(String)
public void setBucketName(String bucketName)
bucketName
- The name of the Qcloud COS bucket containing the object to delete.getBucketName()
public DeleteObjectRequest withBucketName(String bucketName)
bucketName
- The name of the Qcloud COS bucket containing the object to delete.DeleteObjectRequest
object, enabling additional method calls to
be chained together.public String getKey()
setKey(String)
public void setKey(String key)
key
- The key of the object to delete.getKey()
public DeleteObjectRequest withKey(String key)
key
- The key of the object to delete.DeleteObjectRequest
object, enabling additional method calls to
chained together.public void setRecursive(boolean isRecursive)
public boolean isRecursive()
Copyright © 2024. All rights reserved.