Package com.amazonaws.services.s3.model
Enum CORSRule.AllowedMethods
- java.lang.Object
-
- java.lang.Enum<CORSRule.AllowedMethods>
-
- com.amazonaws.services.s3.model.CORSRule.AllowedMethods
-
- All Implemented Interfaces:
Serializable
,Comparable<CORSRule.AllowedMethods>
- Enclosing class:
- CORSRule
public static enum CORSRule.AllowedMethods extends Enum<CORSRule.AllowedMethods>
Enumeration of names of the all the allowed methods.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CORSRule.AllowedMethods
fromValue(String allowedMethod)
String
toString()
static CORSRule.AllowedMethods
valueOf(String name)
Returns the enum constant of this type with the specified name.static CORSRule.AllowedMethods[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final CORSRule.AllowedMethods GET
-
PUT
public static final CORSRule.AllowedMethods PUT
-
HEAD
public static final CORSRule.AllowedMethods HEAD
-
POST
public static final CORSRule.AllowedMethods POST
-
DELETE
public static final CORSRule.AllowedMethods DELETE
-
-
Method Detail
-
values
public static CORSRule.AllowedMethods[] 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 (CORSRule.AllowedMethods c : CORSRule.AllowedMethods.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CORSRule.AllowedMethods 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<CORSRule.AllowedMethods>
-
fromValue
public static CORSRule.AllowedMethods fromValue(String allowedMethod) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-