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.
| Enum Constant and Description |
|---|
Archive
Archive
|
Deep_Archive
Deep_Archive
|
Intelligent_Tiering
Intelligent_Tiering
|
Maz_Archive
Maz_Archive
|
Maz_Deep_Archive
Maz_Deep_Archive
|
Maz_Intelligent_Tiering
Maz_Intelligent_Tiering
|
Maz_Standard
Maz_Standard
|
Maz_Standard_IA
Maz_Standard_IA
|
Standard
The default COS class.
|
Standard_IA
Standard_IA
|
| Modifier and Type | Method and Description |
|---|---|
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)
Returns the enum constant of this type with the specified name.
|
static StorageClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StorageClass Standard
public static final StorageClass Standard_IA
public static final StorageClass Archive
public static final StorageClass Deep_Archive
public static final StorageClass Intelligent_Tiering
public static final StorageClass Maz_Standard
public static final StorageClass Maz_Standard_IA
public static final StorageClass Maz_Archive
public static final StorageClass Maz_Deep_Archive
public static final StorageClass Maz_Intelligent_Tiering
public static StorageClass[] values()
for (StorageClass c : StorageClass.values()) System.out.println(c);
public static StorageClass valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic 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.cosStorageClassString - 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 in class Enum<StorageClass>Copyright © 2023. All rights reserved.