@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 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 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.ReadAccessType
public 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.ReadAccessType
public void setMembershipType(String membershipType)
The type of group.
membershipType
- The type of group.MembershipType
public String getMembershipType()
The type of group.
MembershipType
public PrincipalGroup withMembershipType(String membershipType)
The type of group.
membershipType
- The type of group.MembershipType
public PrincipalGroup withMembershipType(MembershipType membershipType)
The type of group.
membershipType
- The type of group.MembershipType
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 String toString()
toString
in class Object
Object.toString()
public PrincipalGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.