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.
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
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 name
NullPointerException
- if the argument is null
toString
public String toString()
- Overrides:
toString
in class Enum<CORSRule.AllowedMethods>
fromValue
public static CORSRule.AllowedMethods fromValue(String allowedMethod)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.