Class PolicyRole
- All Implemented Interfaces:
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The stable and unique string identifying the role.The name (friendly name, not ARN) identifying the role.int
hashCode()
void
The stable and unique string identifying the role.void
setRoleName
(String roleName) The name (friendly name, not ARN) identifying the role.toString()
Returns a string representation of this object; useful for testing and debugging.withRoleId
(String roleId) The stable and unique string identifying the role.withRoleName
(String roleName) The name (friendly name, not ARN) identifying the role.
-
Constructor Details
-
PolicyRole
public PolicyRole()
-
-
Method Details
-
setRoleName
The name (friendly name, not ARN) identifying the role.
- Parameters:
roleName
- The name (friendly name, not ARN) identifying the role.
-
getRoleName
The name (friendly name, not ARN) identifying the role.
- Returns:
- The name (friendly name, not ARN) identifying the role.
-
withRoleName
The name (friendly name, not ARN) identifying the role.
- Parameters:
roleName
- The name (friendly name, not ARN) identifying the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleId
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
- Parameters:
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
-
getRoleId
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
- Returns:
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
-
withRoleId
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
- Parameters:
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-