public class RenameObjectRequest extends GenericObjectRequest
trafficLimitBitPS| Constructor and Description |
|---|
RenameObjectRequest(String bucketName,
String sourceKey,
String key)
Constructs a new RenameObjectRequest object to rename Bos object
specified bucket, sourceKey and key.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSourceKey()
Get the object origin key
|
void |
setSourceKey(String sourceKey)
Set the sourceKey of the Request
|
RenameObjectRequest |
withBucketName(String bucketName)
Sets the name of the bucket where this request will upload a new
object to.
|
RenameObjectRequest |
withKey(String key)
Sets the key under which to store the new object.
|
RenameObjectRequest |
withRequestCredentials(BceCredentials credentials) |
RenameObjectRequest |
withSourceKey(String sourceKey)
Set the sourceKey of the Request
Returns this RenameObjectRequest, enabling additional method calls to be chained together.
|
getKey, setKeygetBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic RenameObjectRequest(String bucketName, String sourceKey, String key)
bucketName - The name of an existing bucket to which the new object will be uploaded.sourceKey - The origin key of objectkey - The destination key of objectpublic String getSourceKey()
public void setSourceKey(String sourceKey)
sourceKey - the key of Baidu bos objectpublic RenameObjectRequest withSourceKey(String sourceKey)
sourceKey - the key of Baidu bos objectpublic RenameObjectRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestpublic RenameObjectRequest withBucketName(String bucketName)
withBucketName in class GenericBucketRequestbucketName - The name of an existing bucket where this request will upload a new object to.public RenameObjectRequest withKey(String key)
withKey in class GenericObjectRequestkey - The key under which to store the new object.Copyright © 2024. All rights reserved.