类 RenameObjectRequest


  • public class RenameObjectRequest
    extends GenericObjectRequest
    Request object for rename Bos object's key
    • 构造器详细资料

      • 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 object
        key - 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.
      • 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.