public enum StorageClass extends Enum<StorageClass>
Specifies constants that define COS storage classes. The standard storage class is the default storage class.
Qcloud COS offers multiple storage classes for different customers' needs. The
STANDARD storage class is the default storage class, and means that
redundant copies of data will be stored in different locations.
| 枚举常量和说明 |
|---|
NearLine
The Qcloud NEARLINE storage class.
|
Standard
The default COS class.
|
Standard_IA
STANDARD_IA
|
| 限定符和类型 | 方法和说明 |
|---|---|
static StorageClass |
fromValue(String cosStorageClassString)
Returns the Qcloud COS
StorageClass enumeration value representing the
specified Qcloud COS StorageClass ID string. |
String |
toString() |
static StorageClass |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static StorageClass[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final StorageClass Standard
public static final StorageClass Standard_IA
public static final StorageClass NearLine
public static StorageClass[] values()
for (StorageClass c : StorageClass.values()) System.out.println(c);
public static StorageClass valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static StorageClass fromValue(String cosStorageClassString) throws IllegalArgumentException
StorageClass enumeration value representing the
specified Qcloud COS StorageClass ID string.
If the specified string doesn't map to a known Qcloud COS storage class,
an IllegalArgumentException is thrown.Cos - StorageClassString
The Qcloud COS storage class ID string.StorageClass enumeration value representing the
specified Qcloud COS storage class ID.IllegalArgumentException - If the specified value does not map to one of the known
Qcloud COS storage classes.public String toString()
toString 在类中 Enum<StorageClass>Copyright © 2017. All rights reserved.