com.obs.services.model

## 类 BucketStorageInfo

- java.lang.Object
- - com.obs.services.internal.InternalHeaderResponse
  - - com.obs.services.model.HeaderResponse
    - - com.obs.services.model.BucketStorageInfo

-     public class BucketStorageInfo
      extends HeaderResponse

  Bucket storage information

- - ### 字段概要

    - ### 从类继承的字段 com.obs.services.internal.InternalHeaderResponse

      `responseHeaders, statusCode`

  - ### 构造器概要

    构造器
    构造器和说明
    `BucketStorageInfo()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `long` | `getObjectNumber()` Obtain the number of objects in the bucket.
    `long` | `getSize()` Obtain the bucket quota (in bytes).
    `void` | `setObjectNumber(long objectNumber)` Set the number of objects in the bucket.
    `void` | `setSize(long storageSize)` Set the bucket size (in bytes).
    `String` | `toString()`

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

      `getRequestId, getResponseHeaders, getStatusCode`

    - ### 从类继承的方法 com.obs.services.internal.InternalHeaderResponse

      `setResponseHeaders, setStatusCode`

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

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

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

    - #### BucketStorageInfo

          public BucketStorageInfo()

  - ### 方法详细资料

    - #### getSize

          public long getSize()

      Obtain the bucket quota (in bytes).
      返回:
        Bucket size

    - #### setSize

          public void setSize(long storageSize)

      Set the bucket size (in bytes).
      参数:
        `storageSize` - Bucket size

    - #### getObjectNumber

          public long getObjectNumber()

      Obtain the number of objects in the bucket.
      返回:
        Number of objects in the bucket

    - #### setObjectNumber

          public void setObjectNumber(long objectNumber)

      Set the number of objects in the bucket.
      参数:
        `objectNumber` - Number of objects in the bucket

    - #### toString

          public String toString()

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

Copyright © 2021. All rights reserved.