public class PolicyUser
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
userId
The stable and unique string identifying the user.
|
private java.lang.String |
userName
The name (friendly name, not ARN) identifying the user.
|
Constructor and Description |
---|
PolicyUser() |
Modifier and Type | Method and Description |
---|---|
PolicyUser |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getUserId()
The stable and unique string identifying the user.
|
java.lang.String |
getUserName()
The name (friendly name, not ARN) identifying the user.
|
int |
hashCode() |
void |
setUserId(java.lang.String userId)
The stable and unique string identifying the user.
|
void |
setUserName(java.lang.String userName)
The name (friendly name, not ARN) identifying the user.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyUser |
withUserId(java.lang.String userId)
The stable and unique string identifying the user.
|
PolicyUser |
withUserName(java.lang.String userName)
The name (friendly name, not ARN) identifying the user.
|
private java.lang.String userName
The name (friendly name, not ARN) identifying the user.
private java.lang.String userId
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the IAM User Guide.
public void setUserName(java.lang.String userName)
The name (friendly name, not ARN) identifying the user.
userName
- The name (friendly name, not ARN) identifying the user.public java.lang.String getUserName()
The name (friendly name, not ARN) identifying the user.
public PolicyUser withUserName(java.lang.String userName)
The name (friendly name, not ARN) identifying the user.
userName
- The name (friendly name, not ARN) identifying the user.public void setUserId(java.lang.String userId)
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the IAM User Guide.
userId
- The stable and unique string identifying the user. For more
information about IDs, see IAM Identifiers in the IAM User Guide.public java.lang.String getUserId()
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the IAM User Guide.
public PolicyUser withUserId(java.lang.String userId)
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the IAM User Guide.
userId
- The stable and unique string identifying the user. For more
information about IDs, see IAM Identifiers in the IAM User Guide.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PolicyUser clone()
clone
in class java.lang.Object