com.obs.services.model.fs

## 类 TruncateFileRequest

- java.lang.Object
- - com.obs.services.model.GenericRequest
  - - com.obs.services.model.fs.TruncateFileRequest

-     public class TruncateFileRequest
      extends GenericRequest

  Parameters in a request for truncating a file

- - ### 构造器概要

    构造器
    构造器和说明
    `TruncateFileRequest()`
    `TruncateFileRequest(String bucketName, String objectKey, long newLength)` Constructor

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBucketName()` Obtain the bucket name.
    `long` | `getNewLength()` Obtain the file size after the truncation.
    `String` | `getObjectKey()` Obtain the file name.
    `void` | `setBucketName(String bucketName)` Set the bucket name.
    `void` | `setNewLength(long newLength)` Set the post-truncation file size.
    `void` | `setObjectKey(String objectKey)` Set the file name.

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

      `isRequesterPays, setRequesterPays, toString`

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

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

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

    - #### TruncateFileRequest

          public TruncateFileRequest()

    - #### TruncateFileRequest

          public TruncateFileRequest(String bucketName,
                                     String objectKey,
                                     long newLength)

      Constructor
      参数:
        `bucketName` - Bucket name
        `objectKey` - File name
        `newLength` - File size after the truncation

  - ### 方法详细资料

    - #### 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 name.
      返回:
        File name

    - #### setObjectKey

          public void setObjectKey(String objectKey)

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

    - #### getNewLength

          public long getNewLength()

      Obtain the file size after the truncation.
      返回:
        File size after the truncation

    - #### setNewLength

          public void setNewLength(long newLength)

      Set the post-truncation file size.
      参数:
        `newLength` - File size after the truncation

Copyright © 2021. All rights reserved.