Class PolicyRole
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.PolicyRole
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyRole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setRoleName
public void setRoleName(String roleName)
The name (friendly name, not ARN) identifying the role.
- Parameters:
roleName
- The name (friendly name, not ARN) identifying the role.
-
getRoleName
public String getRoleName()
The name (friendly name, not ARN) identifying the role.
- Returns:
- The name (friendly name, not ARN) identifying the role.
-
withRoleName
public PolicyRole withRoleName(String roleName)
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
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.
- Parameters:
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.
-
getRoleId
public String 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
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.
- 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PolicyRole clone()
-
-