类 RestoreObjectsRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractBulkRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.RestoreObjectsRequest
Request parameters of restoring Archive objects in a batch. The "prefix" and
"keyAndVersions" parameters cannot be set in the same request. If both
parameters are empty, all Archive objects in the bucket are restored.
-
字段概要
字段修饰符和类型字段说明private intprivate Stringprivate List<KeyAndVersion> private Stringprivate RestoreTierEnumprivate boolean从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractBulkRequest
listener, taskProgressInterval, taskQueueNum, taskThreadNum从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
bucketName, httpMethod, userHeaders -
构造器概要
构造器构造器说明RestoreObjectsRequest(String bucketName) ConstructorRestoreObjectsRequest(String bucketName, int days, RestoreTierEnum tier) ConstructorRestoreObjectsRequest(String bucketName, int days, RestoreTierEnum tier, String encodingType) Constructor -
方法概要
修饰符和类型方法说明addKeyAndVersion(String objectKey) Add an object to be restored.addKeyAndVersion(String objectKey, String versionId) Add an object to be restored.Obtain the callback object of a batch task.intgetDays()Obtain the retention period of the restored objects.Obtain the list of to-be-deleted objects.Obtain the list of objects to be restored.Obtain the name prefix of the objects to be restored in a batch.Obtain the restore option.booleanObtain whether to restore all versions of Archive objects.voidSet the callback object of a batch task.voidsetDays(int days) Set the retention period of the restored objects.voidsetEncodingType(String encodingType) Set the encoding type that used for encode objectkeyvoidsetKeyAndVersions(List<KeyAndVersion> keyAndVersions) Set the list of objects to be restored.voidSet the name prefix of the objects to be restored in a batch.voidSet the restore option.voidsetVersionRestored(boolean versionRestored) Set whether to restore all versions of Archive objects.toString()从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.AbstractBulkRequest
getProgressInterval, getProgressListener, getTaskQueueNum, getTaskThreadNum, setProgressInterval, setProgressListener, setTaskQueueNum, setTaskThreadNum从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setRequesterPays, setUserHeaders
-
字段详细资料
-
days
private int days -
tier
-
prefix
-
versionRestored
private boolean versionRestored -
encodingType
-
keyAndVersions
-
callback
-
-
构造器详细资料
-
RestoreObjectsRequest
public RestoreObjectsRequest() -
RestoreObjectsRequest
Constructor- 参数:
bucketName- Bucket name
-
RestoreObjectsRequest
Constructor- 参数:
bucketName- Bucket namedays- Retention period of the restored objectstier- Restore option
-
RestoreObjectsRequest
public RestoreObjectsRequest(String bucketName, int days, RestoreTierEnum tier, String encodingType) Constructor- 参数:
bucketName- Bucket namedays- Retention period of the restored objectstier- Restore optionencodingType- The encoding type use for encode objectKey.
-
-
方法详细资料
-
getDays
public int getDays()Obtain the retention period of the restored objects. The value ranges from 1 to 30 (in days).- 返回:
- Retention period of the restored objects
-
setDays
public void setDays(int days) Set the retention period of the restored objects. The value ranges from 1 to 30 (in days).- 参数:
days- Retention period of the restored objects
-
getRestoreTier
Obtain the restore option.- 返回:
- Restore option
-
setRestoreTier
Set the restore option.- 参数:
tier- Restore option
-
setPrefix
Set the name prefix of the objects to be restored in a batch.- 参数:
prefix- Object name prefix
-
getPrefix
Obtain the name prefix of the objects to be restored in a batch.- 返回:
- Object name prefix
-
isVersionRestored
public boolean isVersionRestored()Obtain whether to restore all versions of Archive objects. The default value is "false", indicating that only latest versions of Archive objects are restored.- 返回:
- Identifier of version restore
-
setVersionRestored
public void setVersionRestored(boolean versionRestored) Set whether to restore all versions of Archive objects.- 参数:
versionRestored- Identifier of version restore
-
setKeyAndVersions
Set the list of objects to be restored.- 参数:
keyAndVersions- List of objects to be restored
-
getKeyAndVersions
Obtain the list of objects to be restored.- 返回:
- List of objects to be restored
-
addKeyAndVersion
Add an object to be restored.- 参数:
objectKey- Object nameversionId- Object version- 返回:
- Object that has been added to be restored
-
addKeyAndVersion
Add an object to be restored.- 参数:
objectKey- Object name- 返回:
- Object that has been added to be restored
-
getCallback
Obtain the callback object of a batch task.- 返回:
- Callback object
-
setCallback
Set the callback object of a batch task.- 参数:
callback- Callback object
-
setEncodingType
Set the encoding type that used for encode objectkey- 参数:
encodingType- could chose url.
-
getEncodingType
Obtain the list of to-be-deleted objects.- 返回:
- List of to-be-deleted objects
-
toString
- 覆盖:
toString在类中GenericRequest
-