|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GroupGrantee>
com.amazonaws.services.s3.model.GroupGrantee
public enum GroupGrantee
Represents a group of Amazon S3 users who can be granted permissions to Amazon S3 buckets and objects. This enum contains all the valid Amazon S3 group grantees.
Enum Constant Summary | |
---|---|
AllUsers
Grants anonymous access to any Amazon S3 object or bucket. |
|
AuthenticatedUsers
Grants access to buckets or objects to anyone with an Amazon AWS account. |
|
LogDelivery
Grants access to Amazon S3 log delivery so that an S3 bucket can receive server access logs. |
Method Summary | |
---|---|
String |
getIdentifier()
Returns the group grantee's URI. |
static GroupGrantee |
parseGroupGrantee(String groupUri)
Returns the GroupGrantee with the specified Amazon S3 group URI (eg http://acs.amazonaws.com/groups/global/AllUsers) or null if an invalid Amazon S3 group URI is specified. |
void |
setIdentifier(String id)
Unsupported operation. |
String |
toString()
|
static GroupGrantee |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GroupGrantee[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final GroupGrantee AllUsers
We highly recommend that you do not grant the AllUsers group write access to your buckets as you will have no control over the objects others can store and their associated charges.
public static final GroupGrantee AuthenticatedUsers
public static final GroupGrantee LogDelivery
Method Detail |
---|
public static GroupGrantee[] values()
for (GroupGrantee c : GroupGrantee.values()) System.out.println(c);
public static GroupGrantee valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getIdentifier()
getIdentifier
in interface Grantee
public void setIdentifier(String id)
setIdentifier
in interface Grantee
id
- The identifier for this grantee.public String toString()
toString
in class Enum<GroupGrantee>
Enum.toString()
public static GroupGrantee parseGroupGrantee(String groupUri)
groupUri
- a string representation of an Amazon S3 group URI, eg
http://acs.amazonaws.com/groups/global/AllUsers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |