文档中心 > 存储类型转换
存储类型转换

最近更新时间:2021-09-18

用于转化对象的存储类型,现在可进行的存储类型转换为:STANDARD(标准型)、 STANDARD_IA(低频型)、GLAICER(归档型)。

public void testStorageConversion() { 

try{ 

s3.copyObject(new CopyObjectRequest(bucketName, objectName, bucketName, obje ctName).withStorageClass(StorageClass.Glacier)); 

} catch (AmazonServiceException e) { 

System.err.println(e.getErrorMessage()); 

System.exit(1); 

System.out.println("Test Conversion object storage‐class done!"); 

}