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:
  • Constructor Details

    • PolicyRole

      public PolicyRole()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public PolicyRole clone()
      Overrides:
      clone in class Object