@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SharePrincipal extends Object implements Serializable, Cloneable, StructuredPojo
Describes the recipient type and ID, if available.
| Constructor and Description |
|---|
SharePrincipal() |
| Modifier and Type | Method and Description |
|---|---|
SharePrincipal |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The ID of the recipient.
|
String |
getRole()
The role of the recipient.
|
String |
getType()
The type of the recipient.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setId(String id)
The ID of the recipient.
|
void |
setRole(RoleType role)
The role of the recipient.
|
void |
setRole(String role)
The role of the recipient.
|
void |
setType(PrincipalType type)
The type of the recipient.
|
void |
setType(String type)
The type of the recipient.
|
String |
toString()
Returns a string representation of this object.
|
SharePrincipal |
withId(String id)
The ID of the recipient.
|
SharePrincipal |
withRole(RoleType role)
The role of the recipient.
|
SharePrincipal |
withRole(String role)
The role of the recipient.
|
SharePrincipal |
withType(PrincipalType type)
The type of the recipient.
|
SharePrincipal |
withType(String type)
The type of the recipient.
|
public void setId(String id)
The ID of the recipient.
id - The ID of the recipient.public String getId()
The ID of the recipient.
public SharePrincipal withId(String id)
The ID of the recipient.
id - The ID of the recipient.public void setType(String type)
The type of the recipient.
type - The type of the recipient.PrincipalTypepublic String getType()
The type of the recipient.
PrincipalTypepublic SharePrincipal withType(String type)
The type of the recipient.
type - The type of the recipient.PrincipalTypepublic void setType(PrincipalType type)
The type of the recipient.
type - The type of the recipient.PrincipalTypepublic SharePrincipal withType(PrincipalType type)
The type of the recipient.
type - The type of the recipient.PrincipalTypepublic void setRole(String role)
The role of the recipient.
role - The role of the recipient.RoleTypepublic String getRole()
The role of the recipient.
RoleTypepublic SharePrincipal withRole(String role)
The role of the recipient.
role - The role of the recipient.RoleTypepublic void setRole(RoleType role)
The role of the recipient.
role - The role of the recipient.RoleTypepublic SharePrincipal withRole(RoleType role)
The role of the recipient.
role - The role of the recipient.RoleTypepublic String toString()
toString in class ObjectObject.toString()public SharePrincipal clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.