com.netease.cloud.services.nos.model
public enum StorageClass extends Enum<StorageClass>
Specifies constants that define Nos storage classes. The standard storage class is the default storage class.
Nos 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.
The REDUCED_REDUNDANCY
storage class offers customers who are
using Nos for storing non-critical, reproducible data a low-cost highly
available, but less redundant, storage option.
Enum Constant and Description |
---|
ArchiveCheap
The cheap archive storage class.
|
ArchiveStandard
The default archive storage.
|
ArchiveTrivial
The archive trivial storage class simple stores archive data with no raid.
|
Cheap
The cheap storage class.
|
Standard
The default Nos storage class.
|
Trivial
The trivial storage class simple stores user data with no raid.
|
Modifier and Type | Method and Description |
---|---|
static StorageClass |
fromValue(String NosStorageClassString)
Returns the Nos
StorageClass enumeration value representing the
specified Nos 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 Cheap
public static final StorageClass Trivial
public static final StorageClass ArchiveStandard
public static final StorageClass ArchiveCheap
public static final StorageClass ArchiveTrivial
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 NosStorageClassString) throws IllegalArgumentException
StorageClass
enumeration value representing the
specified Nos StorageClass
ID string. If the specified
string doesn't map to a known Nos storage class, an
IllegalArgumentException
is thrown.NosStorageClassString
- The Nos storage class ID string.StorageClass
enumeration value representing
the specified Nos storage class ID.IllegalArgumentException
- If the specified value does not map to one of the known Nos
storage classes.public String toString()
toString
in class Enum<StorageClass>
Copyright © 2017. All Rights Reserved.