类 RestoreObjectRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.GenericObjectRequest
-
- com.baidubce.services.bos.model.RestoreObjectRequest
-
public class RestoreObjectRequest extends GenericObjectRequest
Restore object request for restoring archive object
-
-
字段概要
-
从类继承的字段 com.baidubce.services.bos.model.GenericObjectRequest
trafficLimitBitPS
-
-
构造器概要
构造器 构造器 说明 RestoreObjectRequest(String bucketName, String key)Sets the bucket and key of RestoreObjectRequestRestoreObjectRequest(String bucketName, String key, int restoreDays, String restoreTier)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 IntegergetRestoreDays()Gets the restore days for this requestStringgetRestoreTier()Get the restore tier used in this requestvoidsetRestoreDays(Integer restoreDays)Sets the restore days for this requestvoidsetRestoreTier(String restoreTier)Set the restore tier used in this requestRestoreObjectRequestwithBucketName(String bucketName)Sets the name of the bucket in which to restore object, and hence, the eventual object restored from RestoreObjectRequest.RestoreObjectRequestwithKey(String key)Sets the key by which to restore, and hence, the eventual object restored from RestoreObjectRequest.RestoreObjectRequestwithRequestCredentials(BceCredentials credentials)Sets the optional credentials to use for this request, overriding the default credentials set at the client level.RestoreObjectRequestwithRestoreDays(Integer restoreDays)Sets the restore days for this requestRestoreObjectRequestwithRestoreTier(String restoreTier)Set the restore tier used in this request-
从类继承的方法 com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
withKey
public RestoreObjectRequest withKey(String key)
Sets the key by which to restore, and hence, the eventual object restored from RestoreObjectRequest.Returns this updated RestoreObjectRequest so that additional method calls can be chained together.
- 指定者:
withKey在类中GenericObjectRequest- 参数:
key- The key by which to be restored- 返回:
- This updated RestoreObjectRequest object.
-
withBucketName
public RestoreObjectRequest withBucketName(String bucketName)
Sets the name of the bucket in which to restore object, and hence, the eventual object restored from RestoreObjectRequest.Returns this updated RestoreObjectRequest so that additional method calls can be chained together.
- 指定者:
withBucketName在类中GenericBucketRequest- 参数:
bucketName- The name of the bucket in which to restore object- 返回:
- This updated RestoreObjectRequest object.
-
withRequestCredentials
public RestoreObjectRequest withRequestCredentials(BceCredentials credentials)
Sets the optional credentials to use for this request, overriding the default credentials set at the client level.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- The optional BCE security credentials to use for this request, overriding the default credentials set at the client level.
-
getRestoreDays
public Integer getRestoreDays()
Gets the restore days for this request- 返回:
- restoreDays Days kept after restoring object
-
setRestoreDays
public void setRestoreDays(Integer restoreDays)
Sets the restore days for this request- 参数:
restoreDays- Days kept after restoring object
-
withRestoreDays
public RestoreObjectRequest withRestoreDays(Integer restoreDays)
Sets the restore days for this request- 参数:
restoreDays- Days kept after restoring object- 返回:
- This RestoreObjectRequest, so that additional method calls to be chained together.
-
getRestoreTier
public String getRestoreTier()
Get the restore tier used in this request- 返回:
- restoreTier The restore tier used in restoring object
-
setRestoreTier
public void setRestoreTier(String restoreTier)
Set the restore tier used in this request- 参数:
restoreTier- The restore tier used in restoring object
-
withRestoreTier
public RestoreObjectRequest withRestoreTier(String restoreTier)
Set the restore tier used in this request- 参数:
restoreTier- The restore tier used in restoring object- 返回:
- This RestoreObjectRequest, so that additional method calls to be chained together.
-
-