public class PolicyRole extends Object implements Serializable, 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.
| Constructor and Description |
|---|
PolicyRole() |
| Modifier and Type | Method and Description |
|---|---|
PolicyRole |
clone() |
boolean |
equals(Object obj) |
String |
getRoleId() |
String |
getRoleName()
The name (friendly name, not ARN) identifying the role.
|
int |
hashCode() |
void |
setRoleId(String roleId) |
void |
setRoleName(String roleName)
The name (friendly name, not ARN) identifying the role.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyRole |
withRoleId(String roleId) |
PolicyRole |
withRoleName(String roleName)
The name (friendly name, not ARN) identifying the role.
|
public void setRoleName(String roleName)
The name (friendly name, not ARN) identifying the role.
roleName - The name (friendly name, not ARN) identifying the role.public String getRoleName()
The name (friendly name, not ARN) identifying the role.
public PolicyRole withRoleName(String roleName)
The name (friendly name, not ARN) identifying the role.
roleName - The name (friendly name, not ARN) identifying the role.public void setRoleId(String roleId)
roleId - public String getRoleId()
public PolicyRole withRoleId(String roleId)
roleId - public String toString()
toString in class ObjectObject.toString()public PolicyRole clone()
Copyright © 2016. All rights reserved.