public class DeleteVersionRequest extends CosServiceRequest implements Serializable
| 构造器和说明 |
|---|
DeleteVersionRequest(String bucketName,
String key,
String versionId)
Constructs a new
DeleteVersionRequest object,
ready to be executed to
delete the version identified by the specified version ID, in the
specified bucket and key. |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
String |
getVersionId()
Gets the version ID uniquely identifying which version of the object
to delete.
|
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 |
setVersionId(String versionId)
Sets the version ID uniquely identifying which version of the
object to delete.
|
DeleteVersionRequest |
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.
|
DeleteVersionRequest |
withKey(String key)
Sets the key of the object to delete and returns this object, enabling additional method
calls to be chained together.
|
DeleteVersionRequest |
withVersionId(String versionId)
Sets the version ID uniquely identifying which version of the object to
delete
Returns this
DeleteVersionRequest, enabling additional method
calls to be chained together. |
clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListenerpublic DeleteVersionRequest(String bucketName, String key, String versionId)
DeleteVersionRequest object,
ready to be executed to
delete the version identified by the specified version ID, in the
specified bucket and key.bucketName - The name of the bucket containing the version to delete.key - The key of the object version to delete.versionId - The version ID identifying the version 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 DeleteVersionRequest withBucketName(String bucketName)
bucketName - The name of the Qcloud COS bucket containing the object to delete.DeleteVersionRequest 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 DeleteVersionRequest withKey(String key)
key - The key of the object to delete.DeleteVersionRequest object, enabling additional method calls to
chained together.public String getVersionId()
setVersionId(String),
withVersionId(String)public void setVersionId(String versionId)
versionId - The version ID uniquely identifying which version of
the object to delete.getVersionId(),
withVersionId(String)public DeleteVersionRequest withVersionId(String versionId)
DeleteVersionRequest, enabling additional method
calls to be chained together.versionId - The version ID uniquely identifying which version of the
object to delete.DeleteVersionRequest, enabling additional method
calls to be chained together.getVersionId(),
setVersionId(String)Copyright © 2020. All rights reserved.