Package com.amazonaws.services.s3.model
Enum StorageClass
- All Implemented Interfaces:
Serializable
,Comparable<StorageClass>
,java.lang.constant.Constable
Specifies constants that define Amazon S3 storage classes. The standard storage class is the default storage class.
Amazon S3 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 Amazon S3
for storing non-critical, reproducible data a low-cost highly available,
but less redundant, storage option.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Amazon Glacier storage class.The reduced redundancy storage class.The default Amazon S3 storage class.Standard Infrequent Access storage class -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageClass
Returns the Amazon S3StorageClass
enumeration value representing the specified Amazon S3StorageClass
ID string.toString()
static StorageClass
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.
-
Enum Constant Details
-
Standard
The default Amazon S3 storage class. This storage class is recommended for critical, non-reproducible data. The standard storage class is a highly available and highly redundant storage option provided for an affordable price. -
ReducedRedundancy
The reduced redundancy storage class. This storage class allows customers to reduce their storage costs in return for a reduced level of data redundancy. Customers who are using Amazon S3 for storing non-critical, reproducible data can choose this low cost and highly available, but less redundant, storage option. -
Glacier
The Amazon Glacier storage class. This storage class means your object's data is stored in Amazon Glacier, and Amazon S3 stores a reference to the data in the Amazon S3 bucket. -
StandardInfrequentAccess
Standard Infrequent Access storage class
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromValue
Returns the Amazon S3StorageClass
enumeration value representing the specified Amazon S3StorageClass
ID string. If the specified string doesn't map to a known Amazon S3 storage class, anIllegalArgumentException
is thrown.- Parameters:
s3StorageClassString
- The Amazon S3 storage class ID string.- Returns:
- The Amazon S3
StorageClass
enumeration value representing the specified Amazon S3 storage class ID. - Throws:
IllegalArgumentException
- If the specified value does not map to one of the known Amazon S3 storage classes.
-
toString
- Overrides:
toString
in classEnum<StorageClass>
-