public class PolicyUser extends Object implements Serializable, Cloneable
Contains information about a user 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 |
---|
PolicyUser() |
Modifier and Type | Method and Description |
---|---|
PolicyUser |
clone() |
boolean |
equals(Object obj) |
String |
getUserName()
The name (friendly name, not ARN) identifying the user.
|
int |
hashCode() |
void |
setUserName(String userName)
The name (friendly name, not ARN) identifying the user.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyUser |
withUserName(String userName)
The name (friendly name, not ARN) identifying the user.
|
public String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name (friendly name, not ARN) identifying the user.public PolicyUser withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name (friendly name, not ARN) identifying the user.public String toString()
toString
in class Object
Object.toString()
public PolicyUser clone()
Copyright © 2015. All rights reserved.