com.obs.services.model

## 类 RestoreObjectRequest

- java.lang.Object
- - com.obs.services.model.GenericRequest
  - - com.obs.services.model.BaseObjectRequest
    - - com.obs.services.model.RestoreObjectRequest

-     public class RestoreObjectRequest
      extends BaseObjectRequest

  Parameters in a request for restoring an Archive object

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `RestoreObjectRequest.RestoreObjectStatus` Status of the Archive object

  - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `BULK` 已过时。
    `static String` | `EXPEDITED` 已过时。
    `static String` | `STANDARD` 已过时。

  - ### 构造器概要

    构造器
    构造器和说明
    `RestoreObjectRequest()`
    `RestoreObjectRequest(String bucketName, String objectKey, int days)` Constructor
    `RestoreObjectRequest(String bucketName, String objectKey, String versionId, int days)` Constructor
    `RestoreObjectRequest(String bucketName, String objectKey, String versionId, int days, RestoreTierEnum tier)` Constructor
    `RestoreObjectRequest(String bucketName, String objectKey, String versionId, int days, String tier)` 已过时。

  - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `getDays()` Obtain the retention period of the restored object.
    `RestoreTierEnum` | `getRestoreTier()` Obtain the restore option.
    `String` | `getTier()` 已过时。
    `void` | `setDays(int days)` Set the retention period of the restored object.
    `void` | `setRestoreTier(RestoreTierEnum tier)` Set the restore option.
    `void` | `setTier(String tier)` 已过时。
    `String` | `toString()`

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

      `getBucketName, getObjectKey, getVersionId, setBucketName, setObjectKey, setVersionId`

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

      `isRequesterPays, setRequesterPays`

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

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

- - ### 字段详细资料

    - #### EXPEDITED

          @Deprecated
          public static final String EXPEDITED

      已过时。
      Expedited restoration, which restores an object in 1 to 5 minutes
      另请参阅:
        常量字段值

    - #### STANDARD

          @Deprecated
          public static final String STANDARD

      已过时。
      Standard restoration, which restores the object in 3 to 5 hours
      另请参阅:
        常量字段值

    - #### BULK

          @Deprecated
          public static final String BULK

      已过时。
      Batch restoration, which restores objects in 5 to 12 hours
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### RestoreObjectRequest

          public RestoreObjectRequest()

    - #### RestoreObjectRequest

          public RestoreObjectRequest(String bucketName,
                                      String objectKey,
                                      int days)

      Constructor
      参数:
        `bucketName` - Bucket name
        `objectKey` - Object name
        `days` - Retention period of the restored object

    - #### RestoreObjectRequest

          public RestoreObjectRequest(String bucketName,
                                      String objectKey,
                                      String versionId,
                                      int days)

      Constructor
      参数:
        `bucketName` - Bucket name
        `objectKey` - Object name
        `versionId` - Version ID of the object
        `days` - Retention period of the restored object

    - #### RestoreObjectRequest

          @Deprecated
          public RestoreObjectRequest(String bucketName,
                                                  String objectKey,
                                                  String versionId,
                                                  int days,
                                                  String tier)

      已过时。
      Constructor
      参数:
        `bucketName` - Bucket name
        `objectKey` - Object name
        `versionId` - Version ID of the object
        `days` - Retention period of the restored object
        `tier` - Restore option

    - #### RestoreObjectRequest

          public RestoreObjectRequest(String bucketName,
                                      String objectKey,
                                      String versionId,
                                      int days,
                                      RestoreTierEnum tier)

      Constructor
      参数:
        `bucketName` - Bucket name
        `objectKey` - Object name
        `versionId` - Version ID of the object
        `days` - Retention period of the restored object
        `tier` - Restore option

  - ### 方法详细资料

    - #### getDays

          public int getDays()

      Obtain the retention period of the restored object. The value ranges from 1 to 30 (in days).
      返回:
        Retention period of the restored object

    - #### setDays

          public void setDays(int days)

      Set the retention period of the restored object. The value ranges from 1 to 30 (in days).
      参数:
        `days` - Retention period of the restored object

    - #### getTier

          @Deprecated
          public String getTier()

      已过时。
      Obtain the restore option.
      返回:
        Restore option
      另请参阅:
        `getRestoreTier()`

    - #### setTier

          @Deprecated
          public void setTier(String tier)

      已过时。
      Set the restore option.
      参数:
        `tier` - Restore option
      另请参阅:
        `setRestoreTier(RestoreTierEnum tier)`

    - #### getRestoreTier

          public RestoreTierEnum getRestoreTier()

      Obtain the restore option.
      返回:
        Restore option

    - #### setRestoreTier

          public void setRestoreTier(RestoreTierEnum tier)

      Set the restore option.
      参数:
        `tier` - Restore option

    - #### toString

          public String toString()

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

Copyright © 2021. All rights reserved.