com.obs.services.model

## 类 RenameObjectRequest

- java.lang.Object
- - com.obs.services.model.GenericRequest
  - - com.obs.services.model.RenameObjectRequest

-     public class RenameObjectRequest
      extends GenericRequest

  Request parameters for renaming a file or folder
  Only the parallel file system supports this interface.
  从以下版本开始:
    3.20.3

- - ### 构造器概要

    构造器
    构造器和说明
    `RenameObjectRequest()`
    `RenameObjectRequest(String bucketName, String objectKey, String newObjectKey)` Constructor

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBucketName()` Obtain the bucket name.
    `String` | `getNewObjectKey()` Obtain the new file or folder name.
    `String` | `getObjectKey()` Obtain the file or folder name.
    `void` | `setBucketName(String bucketName)` Set the bucket name.
    `void` | `setNewObjectKey(String newObjectKey)` Set the new file or folder name.
    `void` | `setObjectKey(String objectKey)` Set the file or folder name.
    `String` | `toString()`

    - ### 从类继承的方法 com.obs.services.model.GenericRequest

      `isRequesterPays, setRequesterPays`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### RenameObjectRequest

          public RenameObjectRequest()

    - #### RenameObjectRequest

          public RenameObjectRequest(String bucketName,
                                     String objectKey,
                                     String newObjectKey)

      Constructor
      参数:
        `bucketName` - Bucket name
        `objectKey` - File or folder name
        `newObjectKey` - Name of the new file or folder

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

      Obtain the bucket name.
      返回:
        Bucket name

    - #### setBucketName

          public void setBucketName(String bucketName)

      Set the bucket name.
      参数:
        `bucketName` - Bucket name

    - #### getObjectKey

          public String getObjectKey()

      Obtain the file or folder name.
      返回:
        File or folder name

    - #### setObjectKey

          public void setObjectKey(String objectKey)

      Set the file or folder name.
      参数:
        `objectKey` - File or folder name

    - #### getNewObjectKey

          public String getNewObjectKey()

      Obtain the new file or folder name.
      返回:
        New file/folder name

    - #### setNewObjectKey

          public void setNewObjectKey(String newObjectKey)

      Set the new file or folder name.
      参数:
        `newObjectKey` - Name of the new file or folder

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `GenericRequest`

Copyright © 2021. All rights reserved.