@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; useful for testing and debugging.
|
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.PrincipalType
public String getType()
The type of the recipient.
PrincipalType
public SharePrincipal withType(String type)
The type of the recipient.
type
- The type of the recipient.PrincipalType
public void setType(PrincipalType type)
The type of the recipient.
type
- The type of the recipient.PrincipalType
public SharePrincipal withType(PrincipalType type)
The type of the recipient.
type
- The type of the recipient.PrincipalType
public void setRole(String role)
The role of the recipient.
role
- The role of the recipient.RoleType
public String getRole()
The role of the recipient.
RoleType
public SharePrincipal withRole(String role)
The role of the recipient.
role
- The role of the recipient.RoleType
public void setRole(RoleType role)
The role of the recipient.
role
- The role of the recipient.RoleType
public SharePrincipal withRole(RoleType role)
The role of the recipient.
role
- The role of the recipient.RoleType
public String toString()
toString
in class Object
Object.toString()
public SharePrincipal clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.