@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 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.ReadAccessType
public String getAccess()
Provides information about whether to allow or deny access to the principal.
ReadAccessType
public 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.ReadAccessType
public 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.ReadAccessType
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 setMembershipType(String membershipType)
The type of group.
membershipType
- The type of group.MembershipType
public String getMembershipType()
The type of group.
MembershipType
public PrincipalUser withMembershipType(String membershipType)
The type of group.
membershipType
- The type of group.MembershipType
public PrincipalUser withMembershipType(MembershipType membershipType)
The type of group.
membershipType
- The type of group.MembershipType
public String toString()
toString
in class Object
Object.toString()
public PrincipalUser clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.