Enum S3ResourceType
- java.lang.Object
-
- java.lang.Enum<S3ResourceType>
-
- software.amazon.awssdk.services.s3.internal.resource.S3ResourceType
-
- All Implemented Interfaces:
Serializable
,Comparable<S3ResourceType>
public enum S3ResourceType extends Enum<S3ResourceType>
An enum representing the types of resources supported by S3. Each resource type below will have a concrete implementation ofS3Resource
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_POINT
An access point that fronts a bucket.BUCKET
A specific S3 bucket.OBJECT
A specific S3 object (bucket and key).OBJECT_LAMBDA
An object lambda access point.OUTPOST
An outpost access point.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static S3ResourceType
fromValue(String value)
Use this in place of valueOf.String
toString()
static S3ResourceType
valueOf(String name)
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 Detail
-
BUCKET
public static final S3ResourceType BUCKET
A specific S3 bucket. Implemented byS3BucketResource
.
-
ACCESS_POINT
public static final S3ResourceType ACCESS_POINT
An access point that fronts a bucket. Implemented byS3AccessPointResource
.
-
OBJECT
public static final S3ResourceType OBJECT
A specific S3 object (bucket and key). Implemented byS3ObjectResource
.
-
OUTPOST
public static final S3ResourceType OUTPOST
An outpost access point. Implemented byS3OutpostResource
.
-
OBJECT_LAMBDA
public static final S3ResourceType OBJECT_LAMBDA
An object lambda access point. Implemented byS3ObjectLambdaResource
-
-
Method Detail
-
values
public static S3ResourceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (S3ResourceType c : S3ResourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static S3ResourceType valueOf(String name)
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
public String toString()
- Overrides:
toString
in classEnum<S3ResourceType>
- Returns:
- The canonical string value of this resource type.
-
fromValue
public static S3ResourceType fromValue(String value)
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.
-
-