类 RenameObjectRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.GenericObjectRequest
-
- com.baidubce.services.bos.model.RenameObjectRequest
-
public class RenameObjectRequest extends GenericObjectRequest
Request object for rename Bos object's key
-
-
字段概要
-
从类继承的字段 com.baidubce.services.bos.model.GenericObjectRequest
trafficLimitBitPS
-
-
构造器概要
构造器 构造器 说明 RenameObjectRequest(String bucketName, String sourceKey, String key)Constructs a new RenameObjectRequest object to rename Bos object specified bucket, sourceKey and key.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetSourceKey()Get the object origin keyvoidsetSourceKey(String sourceKey)Set the sourceKey of the RequestRenameObjectRequestwithBucketName(String bucketName)Sets the name of the bucket where this request will upload a new object to.RenameObjectRequestwithKey(String key)Sets the key under which to store the new object.RenameObjectRequestwithRequestCredentials(BceCredentials credentials)RenameObjectRequestwithSourceKey(String sourceKey)Set the sourceKey of the Request Returns this RenameObjectRequest, enabling additional method calls to be chained together.-
从类继承的方法 com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
RenameObjectRequest
public RenameObjectRequest(String bucketName, String sourceKey, String key)
Constructs a new RenameObjectRequest object to rename Bos object specified bucket, sourceKey and 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 object
-
-
方法详细资料
-
getSourceKey
public String getSourceKey()
Get the object origin key- 返回:
- The origin Key
-
setSourceKey
public void setSourceKey(String sourceKey)
Set the sourceKey of the Request- 参数:
sourceKey- the key of Baidu bos object
-
withSourceKey
public RenameObjectRequest withSourceKey(String sourceKey)
Set the sourceKey of the Request Returns this RenameObjectRequest, enabling additional method calls to be chained together.- 参数:
sourceKey- the key of Baidu bos object- 返回:
- This RenameObjectRequest, enabling additional method calls to be chained together.
-
withRequestCredentials
public RenameObjectRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
withBucketName
public RenameObjectRequest withBucketName(String bucketName)
Sets the name of the bucket where this request will upload a new object to. Returns this object, enabling additional method calls to be chained together.- 指定者:
withBucketName在类中GenericBucketRequest- 参数:
bucketName- The name of an existing bucket where this request will upload a new object to.- 返回:
- This PutObjectRequest, enabling additional method calls to be chained together.
-
withKey
public RenameObjectRequest withKey(String key)
Sets the key under which to store the new object. Returns this object, enabling additional method calls to be chained together.- 指定者:
withKey在类中GenericObjectRequest- 参数:
key- The key under which to store the new object.- 返回:
- This PutObjectRequest, enabling additional method calls to be chained together.
-
-