类 RestoreObjectRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.BaseObjectRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.RestoreObjectRequest
Parameters in a request for restoring an Archive object
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final String已过时。private intstatic final String已过时。static final String已过时。private RestoreTierEnumprivate String从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.BaseObjectRequest
encodeHeaders, isIgnorePort, objectKey从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
bucketName, httpMethod, userHeaders -
构造器概要
构造器构造器说明RestoreObjectRequest(String bucketName, String objectKey, int days) ConstructorRestoreObjectRequest(String bucketName, String objectKey, String versionId, int days) ConstructorRestoreObjectRequest(String bucketName, String objectKey, String versionId, int days, RestoreTierEnum tier) ConstructorRestoreObjectRequest(String bucketName, String objectKey, String versionId, int days, String tier) 已过时。 -
方法概要
修饰符和类型方法说明intgetDays()Obtain the retention period of the restored object.Obtain the restore option.getTier()已过时。Obtain the object version ID.voidsetDays(int days) Set the retention period of the restored object.voidSet the restore option.void已过时。voidsetVersionId(String versionId) Set the version ID of the object.toString()从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.BaseObjectRequest
getIsIgnorePort, getObjectKey, isEncodeHeaders, setIsEncodeHeaders, setIsIgnorePort, setObjectKey从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setRequesterPays, setUserHeaders
-
字段详细资料
-
versionId
-
EXPEDITED
已过时。Expedited restoration, which restores an object in 1 to 5 minutes- 另请参阅:
-
STANDARD
已过时。Standard restoration, which restores the object in 3 to 5 hours- 另请参阅:
-
BULK
已过时。Batch restoration, which restores objects in 5 to 12 hours- 另请参阅:
-
days
private int days -
tier
-
-
构造器详细资料
-
RestoreObjectRequest
public RestoreObjectRequest() -
RestoreObjectRequest
Constructor- 参数:
bucketName- Bucket nameobjectKey- Object namedays- Retention period of the restored object
-
RestoreObjectRequest
Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameversionId- Version ID of the objectdays- Retention period of the restored object
-
RestoreObjectRequest
@Deprecated public RestoreObjectRequest(String bucketName, String objectKey, String versionId, int days, String tier) 已过时。Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameversionId- Version ID of the objectdays- Retention period of the restored objecttier- Restore option
-
RestoreObjectRequest
public RestoreObjectRequest(String bucketName, String objectKey, String versionId, int days, RestoreTierEnum tier) Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameversionId- Version ID of the objectdays- Retention period of the restored objecttier- Restore option
-
-
方法详细资料
-
getVersionId
Obtain the object version ID.- 返回:
- Version ID of the object
-
setVersionId
Set the version ID of the object.- 参数:
versionId- Version ID of the object
-
getDays
public int getDays()Obtain the retention period of the restored object. The value ranges from 1 to 30 (in days).- 返回:
- Retention period of the restored object
-
setDays
public void setDays(int days) Set the retention period of the restored object. The value ranges from 1 to 30 (in days).- 参数:
days- Retention period of the restored object
-
getTier
已过时。Obtain the restore option.- 返回:
- Restore option
- 另请参阅:
-
setTier
已过时。Set the restore option.- 参数:
tier- Restore option- 另请参阅:
-
getRestoreTier
Obtain the restore option.- 返回:
- Restore option
-
setRestoreTier
Set the restore option.- 参数:
tier- Restore option
-
toString
- 覆盖:
toString在类中BaseObjectRequest
-