类 RestoreObjectRequest


public class RestoreObjectRequest extends BaseObjectRequest
Parameters in a request for restoring an Archive object
  • 字段详细资料

    • 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
  • 方法详细资料

    • getVersionId

      public String getVersionId()
      Obtain the object version ID.
      返回:
      Version ID of the object
    • setVersionId

      public void setVersionId(String versionId)
      Set the version ID of the object.
      参数:
      versionId - Version ID of the object
    • 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
      另请参阅:
    • setTier

      @Deprecated public void setTier(String tier)
      已过时。
      Set the restore option.
      参数:
      tier - Restore option
      另请参阅:
    • 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