@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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()
The stable and unique string identifying the user.
|
String |
getUserName()
The name (friendly name, not ARN) identifying the user.
|
int |
hashCode() |
void |
setUserId(String userId)
The stable and unique string identifying the user.
|
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)
The stable and unique string identifying the user.
|
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)
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 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(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 String toString()
toString
in class Object
Object.toString()
public PolicyUser clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.