@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PrincipalUser extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about a user associated with a principal.
| Constructor and Description |
|---|
PrincipalUser() |
| Modifier and Type | Method and Description |
|---|---|
PrincipalUser |
clone() |
boolean |
equals(Object obj) |
String |
getAccess()
Provides information about whether to allow or deny access to the principal.
|
String |
getId()
The identifier of the user.
|
String |
getMembershipType()
The type of group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAccess(String access)
Provides information about whether to allow or deny access to the principal.
|
void |
setId(String id)
The identifier of the user.
|
void |
setMembershipType(String membershipType)
The type of group.
|
String |
toString()
Returns a string representation of this object.
|
PrincipalUser |
withAccess(ReadAccessType access)
Provides information about whether to allow or deny access to the principal.
|
PrincipalUser |
withAccess(String access)
Provides information about whether to allow or deny access to the principal.
|
PrincipalUser |
withId(String id)
The identifier of the user.
|
PrincipalUser |
withMembershipType(MembershipType membershipType)
The type of group.
|
PrincipalUser |
withMembershipType(String membershipType)
The type of group.
|
public void setId(String id)
The identifier of the user.
id - The identifier of the user.public String getId()
The identifier of the user.
public PrincipalUser withId(String id)
The identifier of the user.
id - The identifier of the user.public void setAccess(String access)
Provides information about whether to allow or deny access to the principal.
access - Provides information about whether to allow or deny access to the principal.ReadAccessTypepublic String getAccess()
Provides information about whether to allow or deny access to the principal.
ReadAccessTypepublic PrincipalUser withAccess(String access)
Provides information about whether to allow or deny access to the principal.
access - Provides information about whether to allow or deny access to the principal.ReadAccessTypepublic PrincipalUser withAccess(ReadAccessType access)
Provides information about whether to allow or deny access to the principal.
access - Provides information about whether to allow or deny access to the principal.ReadAccessTypepublic void setMembershipType(String membershipType)
The type of group.
membershipType - The type of group.MembershipTypepublic String getMembershipType()
The type of group.
MembershipTypepublic PrincipalUser withMembershipType(String membershipType)
The type of group.
membershipType - The type of group.MembershipTypepublic PrincipalUser withMembershipType(MembershipType membershipType)
The type of group.
membershipType - The type of group.MembershipTypepublic String toString()
toString in class ObjectObject.toString()public PrincipalUser clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.