Class GetUserPolicyResult
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.GetUserPolicyResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GetUserPolicyResult extends Object implements Serializable, Cloneable
Contains the response to a successful GetUserPolicy request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetUserPolicyResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetUserPolicyResultclone()booleanequals(Object obj)StringgetPolicyDocument()The policy document.StringgetPolicyName()The name of the policy.StringgetUserName()The user the policy is associated with.inthashCode()voidsetPolicyDocument(String policyDocument)The policy document.voidsetPolicyName(String policyName)The name of the policy.voidsetUserName(String userName)The user the policy is associated with.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetUserPolicyResultwithPolicyDocument(String policyDocument)The policy document.GetUserPolicyResultwithPolicyName(String policyName)The name of the policy.GetUserPolicyResultwithUserName(String userName)The user the policy is associated with.
-
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
The user the policy is associated with.
- Parameters:
userName- The user the policy is associated with.
-
getUserName
public String getUserName()
The user the policy is associated with.
- Returns:
- The user the policy is associated with.
-
withUserName
public GetUserPolicyResult withUserName(String userName)
The user the policy is associated with.
- Parameters:
userName- The user the policy is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyName
public void setPolicyName(String policyName)
The name of the policy.
- Parameters:
policyName- The name of the policy.
-
getPolicyName
public String getPolicyName()
The name of the policy.
- Returns:
- The name of the policy.
-
withPolicyName
public GetUserPolicyResult withPolicyName(String policyName)
The name of the policy.
- Parameters:
policyName- The name of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyDocument
public void setPolicyDocument(String policyDocument)
The policy document.
- Parameters:
policyDocument- The policy document.
-
getPolicyDocument
public String getPolicyDocument()
The policy document.
- Returns:
- The policy document.
-
withPolicyDocument
public GetUserPolicyResult withPolicyDocument(String policyDocument)
The policy document.
- Parameters:
policyDocument- The policy document.- 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 GetUserPolicyResult clone()
-
-