@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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()
The stable and unique string identifying the role.
|
String |
getRoleName()
The name (friendly name, not ARN) identifying the role.
|
int |
hashCode() |
void |
setRoleId(String roleId)
The stable and unique string identifying the role.
|
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)
The stable and unique string identifying the role.
|
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)
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 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(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 String toString()
toString
in class Object
Object.toString()
public PolicyRole clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.