public class PolicyRole
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about a role 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 |
roleId
The stable and unique string identifying the role.
|
private java.lang.String |
roleName
The name (friendly name, not ARN) identifying the role.
|
Constructor and Description |
---|
PolicyRole() |
Modifier and Type | Method and Description |
---|---|
PolicyRole |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getRoleId()
The stable and unique string identifying the role.
|
java.lang.String |
getRoleName()
The name (friendly name, not ARN) identifying the role.
|
int |
hashCode() |
void |
setRoleId(java.lang.String roleId)
The stable and unique string identifying the role.
|
void |
setRoleName(java.lang.String roleName)
The name (friendly name, not ARN) identifying the role.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyRole |
withRoleId(java.lang.String roleId)
The stable and unique string identifying the role.
|
PolicyRole |
withRoleName(java.lang.String roleName)
The name (friendly name, not ARN) identifying the role.
|
private java.lang.String roleName
The name (friendly name, not ARN) identifying the role.
private java.lang.String roleId
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
public void setRoleName(java.lang.String roleName)
The name (friendly name, not ARN) identifying the role.
roleName
- The name (friendly name, not ARN) identifying the role.public java.lang.String getRoleName()
The name (friendly name, not ARN) identifying the role.
public PolicyRole withRoleName(java.lang.String roleName)
The name (friendly name, not ARN) identifying the role.
roleName
- The name (friendly name, not ARN) identifying the role.public void setRoleId(java.lang.String roleId)
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
roleId
- The stable and unique string identifying the role. For more
information about IDs, see IAM Identifiers in the IAM User Guide.public java.lang.String getRoleId()
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
public PolicyRole withRoleId(java.lang.String roleId)
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
roleId
- The stable and unique string identifying the role. 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 PolicyRole clone()
clone
in class java.lang.Object