public class CanonicalGrantee extends Object implements Grantee, Serializable
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).
CanonicalGrantee(String)
,
Serialized FormConstructor and Description |
---|
CanonicalGrantee(String identifier)
Constructs a new
CanonicalGrantee object
with the given canonical ID. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDisplayName()
Returns the display name for this grantee.
|
String |
getIdentifier()
Returns the unique identifier for this grantee.
|
String |
getTypeIdentifier()
Returns the identifier for the type of this grant, to be used when
specifying grants in the header of a request.
|
int |
hashCode() |
void |
setDisplayName(String displayName)
Sets the display name for this grantee.
|
void |
setIdentifier(String id)
Sets the unique identifier for this grantee.
|
public CanonicalGrantee(String identifier)
CanonicalGrantee
object
with the given canonical ID.identifier
- public String getTypeIdentifier()
Grantee
getTypeIdentifier
in interface Grantee
public void setIdentifier(String id)
Sets the unique identifier for this grantee.
setIdentifier
in interface Grantee
id
- The identifier for this grantee.getIdentifier()
public String getIdentifier()
Returns the unique identifier for this grantee.
getIdentifier
in interface Grantee
setIdentifier(String)
public void setDisplayName(String displayName)
Sets the display name for this grantee.
displayName
- getDisplayName()
public String getDisplayName()
Returns the display name for this grantee.
setDisplayName(String)
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.