@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PrincipalGroup extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about a group associated with the principal.
| Constructor and Description |
|---|
PrincipalGroup() |
| Modifier and Type | Method and Description |
|---|---|
PrincipalGroup |
clone() |
boolean |
equals(Object obj) |
String |
getAccess()
Provides information about whether to allow or deny access to the principal.
|
String |
getMembershipType()
The type of group.
|
String |
getName()
The name of the 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 |
setMembershipType(String membershipType)
The type of group.
|
void |
setName(String name)
The name of the group.
|
String |
toString()
Returns a string representation of this object.
|
PrincipalGroup |
withAccess(ReadAccessType access)
Provides information about whether to allow or deny access to the principal.
|
PrincipalGroup |
withAccess(String access)
Provides information about whether to allow or deny access to the principal.
|
PrincipalGroup |
withMembershipType(MembershipType membershipType)
The type of group.
|
PrincipalGroup |
withMembershipType(String membershipType)
The type of group.
|
PrincipalGroup |
withName(String name)
The name of the group.
|
public void setName(String name)
The name of the group.
name - The name of the group.public String getName()
The name of the group.
public PrincipalGroup withName(String name)
The name of the group.
name - The name of the 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.ReadAccessTypepublic String getAccess()
Provides information about whether to allow or deny access to the principal.
ReadAccessTypepublic PrincipalGroup 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 PrincipalGroup 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 PrincipalGroup withMembershipType(String membershipType)
The type of group.
membershipType - The type of group.MembershipTypepublic PrincipalGroup withMembershipType(MembershipType membershipType)
The type of group.
membershipType - The type of group.MembershipTypepublic String toString()
toString in class ObjectObject.toString()public PrincipalGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.