Class CanonicalGrantee
java.lang.Object
com.amazonaws.services.s3.model.CanonicalGrantee
- All Implemented Interfaces:
Grantee, Serializable
Represents a grantee identified by their canonical Amazon ID.
The canonical Amazon ID can be thought of as
an Amazon-internal ID specific to a user. For
example, Amazon can map a grantee identified by an email address to a
canonical ID.
Canonical grantees may have an associated display name, which is a human-friendly name that Amazon has linked to the canonical ID (eg. the user's login name).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCanonicalGrantee(String identifier) Constructs a newCanonicalGranteeobject with the given canonical ID. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the display name for this grantee.Returns the unique identifier for this grantee.Returns the identifier for the type of this grant, to be used when specifying grants in the header of a request.inthashCode()voidsetDisplayName(String displayName) Sets the display name for this grantee.voidsetIdentifier(String id) Sets the unique identifier for this grantee.
-
Constructor Details
-
CanonicalGrantee
Constructs a newCanonicalGranteeobject with the given canonical ID.- Parameters:
identifier-
-
-
Method Details
-
getTypeIdentifier
Description copied from interface:GranteeReturns the identifier for the type of this grant, to be used when specifying grants in the header of a request.- Specified by:
getTypeIdentifierin interfaceGrantee
-
setIdentifier
Sets the unique identifier for this grantee.
- Specified by:
setIdentifierin interfaceGrantee- Parameters:
id- The identifier for this grantee.- See Also:
-
getIdentifier
Returns the unique identifier for this grantee.
- Specified by:
getIdentifierin interfaceGrantee- Returns:
- The identifier for this grantee.
- See Also:
-
setDisplayName
Sets the display name for this grantee.
- Parameters:
displayName-- See Also:
-
getDisplayName
Returns the display name for this grantee.
- Returns:
- The display name for this grantee.
- See Also:
-
equals
-
hashCode
-