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 |
getRoleName()
The name (friendly name, not ARN) identifying the role.
|
int |
hashCode() |
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 |
withRoleName(String roleName)
The name (friendly name, not ARN) identifying the role.
|
public String getRoleName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setRoleName(String roleName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName
- The name (friendly name, not ARN) identifying the role.public PolicyRole withRoleName(String roleName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName
- The name (friendly name, not ARN) identifying the role.public String toString()
toString
in class Object
Object.toString()
public PolicyRole clone()
Copyright © 2015. All rights reserved.