public class RestoreObjectRequest extends GenericObjectRequest
trafficLimitBitPS| Constructor and Description |
|---|
RestoreObjectRequest(String bucketName,
String key)
Sets the bucket and key of RestoreObjectRequest
|
RestoreObjectRequest(String bucketName,
String key,
int restoreDays,
String restoreTier) |
| Modifier and Type | Method and Description |
|---|---|
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
|
getKey, setKeygetBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic RestoreObjectRequest(String bucketName, String key)
bucketName - The name of the bucket in which to restore objectkey - The key by which to be restoredpublic 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 restoredpublic 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 objectpublic 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 objectpublic 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 objectCopyright © 2023. All rights reserved.