|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.bos.model.GenericBucketRequest
com.baidubce.services.bos.model.GenericObjectRequest
com.baidubce.services.bos.model.RestoreObjectRequest
public class RestoreObjectRequest
Restore object request for restoring archive object
| Constructor Summary | |
|---|---|
RestoreObjectRequest(String bucketName,
String key)
Sets the bucket and key of RestoreObjectRequest |
|
| Method Summary | |
|---|---|
Integer |
getRestoreDays()
Gets the restore days for this request |
String |
getRestoreTier()
Get the restore tier used in this request |
void |
setRestoreDays(Integer restoreDays)
Sets the restore days for this request |
void |
setRestoreTier(String restoreTier)
Set the restore tier used in this request |
RestoreObjectRequest |
withBucketName(String bucketName)
Sets the name of the bucket in which to restore object, and hence, the eventual object restored from RestoreObjectRequest. |
RestoreObjectRequest |
withKey(String key)
Sets the key by which to restore, and hence, the eventual object restored from RestoreObjectRequest. |
RestoreObjectRequest |
withRequestCredentials(BceCredentials credentials)
Sets the optional credentials to use for this request, overriding the default credentials set at the client level. |
RestoreObjectRequest |
withRestoreDays(Integer restoreDays)
Sets the restore days for this request |
RestoreObjectRequest |
withRestoreTier(String restoreTier)
Set the restore tier used in this request |
| Methods inherited from class com.baidubce.services.bos.model.GenericObjectRequest |
|---|
getKey, setKey |
| Methods inherited from class com.baidubce.services.bos.model.GenericBucketRequest |
|---|
getBucketName, setBucketName |
| Methods inherited from class com.baidubce.model.AbstractBceRequest |
|---|
getRequestCredentials, setRequestCredentials |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestoreObjectRequest(String bucketName,
String key)
bucketName - The name of the bucket in which to restore objectkey - The key by which to be restored| Method Detail |
|---|
public RestoreObjectRequest withKey(String key)
Returns this updated RestoreObjectRequest so that additional method calls can be chained together.
withKey in class GenericObjectRequestkey - The key by which to be restored
public RestoreObjectRequest withBucketName(String bucketName)
Returns this updated RestoreObjectRequest so that additional method calls can be chained together.
withBucketName in class GenericBucketRequestbucketName - The name of the bucket in which to restore object
public RestoreObjectRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - The optional BCE security credentials to use for this request, overriding the default
credentials set at the client level.public Integer getRestoreDays()
public void setRestoreDays(Integer restoreDays)
restoreDays - Days kept after restoring objectpublic RestoreObjectRequest withRestoreDays(Integer restoreDays)
restoreDays - Days kept after restoring object
public String getRestoreTier()
public void setRestoreTier(String restoreTier)
restoreTier - The restore tier used in restoring objectpublic RestoreObjectRequest withRestoreTier(String restoreTier)
restoreTier - The restore tier used in restoring object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||