Enum S3ResourceType
- All Implemented Interfaces:
Serializable
,Comparable<S3ResourceType>
An enum representing the types of resources supported by S3. Each resource type below will have a
concrete implementation of
S3Resource
.-
Enum Constant Summary
Enum ConstantDescriptionAn access point that fronts a bucket.A specific S3 bucket.A specific S3 object (bucket and key).An object lambda access point.An outpost access point. -
Method Summary
Modifier and TypeMethodDescriptionstatic S3ResourceType
Use this in place of valueOf.toString()
static S3ResourceType
Returns the enum constant of this type with the specified name.static S3ResourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BUCKET
A specific S3 bucket. Implemented byS3BucketResource
. -
ACCESS_POINT
An access point that fronts a bucket. Implemented byS3AccessPointResource
. -
OBJECT
A specific S3 object (bucket and key). Implemented byS3ObjectResource
. -
OUTPOST
An outpost access point. Implemented byS3OutpostResource
. -
OBJECT_LAMBDA
An object lambda access point. Implemented byS3ObjectLambdaResource
-
-
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
-
toString
- Overrides:
toString
in classEnum<S3ResourceType>
- Returns:
- The canonical string value of this resource type.
-
fromValue
Use this in place of valueOf.- Parameters:
value
- real value- Returns:
- S3ResourceType corresponding to the value
- Throws:
IllegalArgumentException
- If the specified value does not map to one of the known values in this enum.
-