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 |
getUserId() |
String |
getUserName()
The name (friendly name, not ARN) identifying the user.
|
int |
hashCode() |
void |
setUserId(String userId) |
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 |
withUserId(String userId) |
PolicyUser |
withUserName(String userName)
The name (friendly name, not ARN) identifying the user.
|
public void setUserName(String userName)
The name (friendly name, not ARN) identifying the user.
userName
- The name (friendly name, not ARN) identifying the user.public String getUserName()
The name (friendly name, not ARN) identifying the user.
public PolicyUser withUserName(String userName)
The name (friendly name, not ARN) identifying the user.
userName
- The name (friendly name, not ARN) identifying the user.public void setUserId(String userId)
userId
- public String getUserId()
public PolicyUser withUserId(String userId)
userId
- public String toString()
toString
in class Object
Object.toString()
public PolicyUser clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.