Class PolicyUser
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The stable and unique string identifying the user.The name (friendly name, not ARN) identifying the user.int
hashCode()
void
The stable and unique string identifying the user.void
setUserName
(String userName) The name (friendly name, not ARN) identifying the user.toString()
Returns a string representation of this object; useful for testing and debugging.withUserId
(String userId) The stable and unique string identifying the user.withUserName
(String userName) The name (friendly name, not ARN) identifying the user.
-
Constructor Details
-
PolicyUser
public PolicyUser()
-
-
Method Details
-
setUserName
The name (friendly name, not ARN) identifying the user.
- Parameters:
userName
- The name (friendly name, not ARN) identifying the user.
-
getUserName
The name (friendly name, not ARN) identifying the user.
- Returns:
- The name (friendly name, not ARN) identifying the user.
-
withUserName
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-