public class PolicyGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about a group that a managed policy is attached to.
This data type is used as a response element in the ListEntitiesForPolicy action.
For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
groupId
The stable and unique string identifying the group.
|
private java.lang.String |
groupName
The name (friendly name, not ARN) identifying the group.
|
Constructor and Description |
---|
PolicyGroup() |
Modifier and Type | Method and Description |
---|---|
PolicyGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroupId()
The stable and unique string identifying the group.
|
java.lang.String |
getGroupName()
The name (friendly name, not ARN) identifying the group.
|
int |
hashCode() |
void |
setGroupId(java.lang.String groupId)
The stable and unique string identifying the group.
|
void |
setGroupName(java.lang.String groupName)
The name (friendly name, not ARN) identifying the group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyGroup |
withGroupId(java.lang.String groupId)
The stable and unique string identifying the group.
|
PolicyGroup |
withGroupName(java.lang.String groupName)
The name (friendly name, not ARN) identifying the group.
|
private java.lang.String groupName
The name (friendly name, not ARN) identifying the group.
private java.lang.String groupId
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the IAM User Guide.
public void setGroupName(java.lang.String groupName)
The name (friendly name, not ARN) identifying the group.
groupName
- The name (friendly name, not ARN) identifying the group.public java.lang.String getGroupName()
The name (friendly name, not ARN) identifying the group.
public PolicyGroup withGroupName(java.lang.String groupName)
The name (friendly name, not ARN) identifying the group.
groupName
- The name (friendly name, not ARN) identifying the group.public void setGroupId(java.lang.String groupId)
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the IAM User Guide.
groupId
- The stable and unique string identifying the group. For more
information about IDs, see IAM Identifiers in the IAM User Guide.public java.lang.String getGroupId()
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the IAM User Guide.
public PolicyGroup withGroupId(java.lang.String groupId)
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the IAM User Guide.
groupId
- The stable and unique string identifying the group. For more
information about IDs, see IAM Identifiers in the IAM User Guide.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PolicyGroup clone()
clone
in class java.lang.Object