public class CanonicalGrantee extends java.lang.Object implements Grantee, java.io.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(java.lang.String identifier)
Constructs a new
CanonicalGrantee object with the given canonical
ID. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDisplayName()
Returns the display name for this grantee.
|
java.lang.String |
getIdentifier()
Returns the unique identifier for this grantee.
|
java.lang.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(java.lang.String displayName)
Sets the display name for this grantee.
|
void |
setIdentifier(java.lang.String id)
Sets the unique identifier for this grantee.
|
public CanonicalGrantee(java.lang.String identifier)
CanonicalGrantee
object with the given canonical
ID.identifier
- public java.lang.String getTypeIdentifier()
Grantee
getTypeIdentifier
in interface Grantee
public void setIdentifier(java.lang.String id)
Sets the unique identifier for this grantee.
setIdentifier
in interface Grantee
id
- The identifier for this grantee.getIdentifier()
public java.lang.String getIdentifier()
Returns the unique identifier for this grantee.
getIdentifier
in interface Grantee
setIdentifier(String)
public void setDisplayName(java.lang.String displayName)
Sets the display name for this grantee.
displayName
- getDisplayName()
public java.lang.String getDisplayName()
Returns the display name for this grantee.
setDisplayName(String)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.