GranteeInterfaceUserByIdGranteepublic class CanonicalGrantee extends Object implements GranteeInterface
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).
| Constructor | Description |
|---|---|
CanonicalGrantee() |
Default constructor.
|
CanonicalGrantee(String identifier) |
Constructs a grantee with the given canonical ID.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
String |
getDisplayName() |
|
String |
getIdentifier() |
|
int |
hashCode() |
|
void |
setDisplayName(String displayName) |
|
void |
setIdentifier(String id) |
|
String |
toString() |
|
String |
toXml() |
|
com.jamesmurty.utils.XMLBuilder |
toXMLBuilder() |
public CanonicalGrantee()
Warning! If created with this constructor this class will not represent a valid grantee until the identifier is set.
public CanonicalGrantee(String identifier)
identifier - public String toXml() throws TransformerException, ParserConfigurationException, FactoryConfigurationError
toXml in interface GranteeInterfaceTransformerExceptionParserConfigurationExceptionFactoryConfigurationErrorpublic com.jamesmurty.utils.XMLBuilder toXMLBuilder()
throws TransformerException,
ParserConfigurationException,
FactoryConfigurationError
toXMLBuilder in interface GranteeInterfaceTransformerExceptionParserConfigurationExceptionFactoryConfigurationErrorpublic void setIdentifier(String id)
setIdentifier in interface GranteeInterfacepublic String getIdentifier()
getIdentifier in interface GranteeInterfacepublic void setDisplayName(String displayName)
public String getDisplayName()