public class RestoreObjectRequest extends CosServiceRequest implements Serializable
| 构造器和说明 |
|---|
RestoreObjectRequest(String bucketName,
String key)
Constructs a new RestoreObjectRequest.
|
RestoreObjectRequest(String bucketName,
String key,
int expirationInDays)
Constructs a new RestoreObjectRequest.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBucketName()
Returns the name of the bucket containing the reference to the object to restore which is now
stored in CAS.
|
CASJobParameters |
getCasJobParameters() |
int |
getExpirationInDays()
Returns the time in days from an object's creation to its expiration.
|
String |
getKey()
Gets the key, the name of the reference to the object to restore, which is now stored in CAS.
|
String |
getVersionId()
Returns the id of the version to be restored.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket containing the reference to the object to restore which is now
stored in CAS.
|
void |
setCASJobParameters(CASJobParameters casJobParameters)
Sets CAS related prameters pertaining to this job.
|
void |
setExpirationInDays(int expirationInDays)
Sets the time, in days, between when an object is uploaded to the bucket and when it expires.
|
void |
setKey(String key)
Sets the key, the name of the reference to the object to restore, which is now stored in CAS.
|
void |
setVersionId(String versionId)
Sets the id of the version to be restored.
|
RestoreObjectRequest |
withBucketName(String bucketName)
Sets the name of the bucket containing the reference to the object to restore which is now
stored in CAS, and returns a reference to this object(RestoreObjectRequest) for method
chaining.
|
RestoreObjectRequest |
withCASJobParameters(CASJobParameters casJobParameters)
Sets CAS related prameters pertaining to this job.
|
RestoreObjectRequest |
withExpirationInDays(int expirationInDays)
Sets the time, in days, between when an object is uploaded to the bucket and when it expires,
and returns a reference to this object(RestoreObjectRequest) for method chaining.
|
RestoreObjectRequest |
withKey(String key)
Sets the key, the name of the reference to the object to restore, which is now stored in CAS.
|
RestoreObjectRequest |
withVersionId(String versionId)
Sets the id of the version to be restored and returns a reference to this object for method
chaining.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getCosCredentials, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setCosCredentials, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListenerpublic RestoreObjectRequest(String bucketName, String key)
Constructs a new RestoreObjectRequest.
bucketName - The name of the bucket containing the reference to the object to restore
which is now stored in CAS.key - The key, the name of the reference to the object to restore, which is now stored
in CAS.RestoreObjectRequest(String, String, int)public RestoreObjectRequest(String bucketName, String key, int expirationInDays)
Constructs a new RestoreObjectRequest.
bucketName - The name of the bucket containing the reference to the object to restore
which is now stored in CAS.key - The key, the name of the reference to the object to restore, which is now stored
in CAS.expirationInDays - The time, in days, between when an object is restored to the bucket
and when it expiresRestoreObjectRequest(String, String)public String getBucketName()
public RestoreObjectRequest withBucketName(String bucketName)
public void setBucketName(String bucketName)
public String getKey()
setKey(String),
withKey(String)public void setKey(String key)
getKey(),
withKey(String)public RestoreObjectRequest withKey(String key)
getKey(),
setKey(String)public String getVersionId()
public void setVersionId(String versionId)
public RestoreObjectRequest withVersionId(String versionId)
public void setExpirationInDays(int expirationInDays)
public int getExpirationInDays()
public RestoreObjectRequest withExpirationInDays(int expirationInDays)
public CASJobParameters getCasJobParameters()
public void setCASJobParameters(CASJobParameters casJobParameters)
casJobParameters - New value for CAS job parameters.public RestoreObjectRequest withCASJobParameters(CASJobParameters casJobParameters)
casJobParameters - New value for CAS job parameters.Copyright © 2021. All rights reserved.