Class PolicyUser
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.PolicyUser
-
- All Implemented Interfaces:
Serializable,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyUserclone()booleanequals(Object obj)StringgetUserId()The stable and unique string identifying the user.StringgetUserName()The name (friendly name, not ARN) identifying the user.inthashCode()voidsetUserId(String userId)The stable and unique string identifying the user.voidsetUserName(String userName)The name (friendly name, not ARN) identifying the user.StringtoString()Returns a string representation of this object; useful for testing and debugging.PolicyUserwithUserId(String userId)The stable and unique string identifying the user.PolicyUserwithUserName(String userName)The name (friendly name, not ARN) identifying the user.
-
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
The name (friendly name, not ARN) identifying the user.
- Parameters:
userName- The name (friendly name, not ARN) identifying the user.
-
getUserName
public String getUserName()
The name (friendly name, not ARN) identifying the user.
- Returns:
- The name (friendly name, not ARN) identifying the user.
-
withUserName
public PolicyUser withUserName(String userName)
The name (friendly name, not ARN) identifying the user.
- Parameters:
userName- The name (friendly name, not ARN) identifying the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserId
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.
- Parameters:
userId- The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the IAM User Guide.
-
getUserId
public String getUserId()
The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the IAM User Guide.
- Returns:
- The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the IAM User Guide.
-
withUserId
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.
- Parameters:
userId- The stable and unique string identifying the user. 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PolicyUser clone()
-
-