Enum S3ControlResourceType
- java.lang.Object
-
- java.lang.Enum<S3ControlResourceType>
-
- software.amazon.awssdk.services.s3control.internal.S3ControlResourceType
-
- All Implemented Interfaces:
Serializable,Comparable<S3ControlResourceType>
public enum S3ControlResourceType extends Enum<S3ControlResourceType>
An enum representing the types of resources supported by S3 control. Each resource type below will have a concrete implementation ofS3Resource.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static S3ControlResourceTypefromValue(String value)Use this in place of valueOf.StringtoString()static S3ControlResourceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static S3ControlResourceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUCKET
public static final S3ControlResourceType BUCKET
-
OUTPOST
public static final S3ControlResourceType OUTPOST
-
-
Method Detail
-
values
public static S3ControlResourceType[] 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 (S3ControlResourceType c : S3ControlResourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static S3ControlResourceType 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:
toStringin classEnum<S3ControlResourceType>- Returns:
- The canonical string value of this resource type.
-
fromValue
public static S3ControlResourceType 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.
-
-