public class GetUserPolicyResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a successful GetUserPolicy request.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyDocument
The policy document.
|
private java.lang.String |
policyName
The name of the policy.
|
private java.lang.String |
userName
The user the policy is associated with.
|
Constructor and Description |
---|
GetUserPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetUserPolicyResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyDocument()
The policy document.
|
java.lang.String |
getPolicyName()
The name of the policy.
|
java.lang.String |
getUserName()
The user the policy is associated with.
|
int |
hashCode() |
void |
setPolicyDocument(java.lang.String policyDocument)
The policy document.
|
void |
setPolicyName(java.lang.String policyName)
The name of the policy.
|
void |
setUserName(java.lang.String userName)
The user the policy is associated with.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetUserPolicyResult |
withPolicyDocument(java.lang.String policyDocument)
The policy document.
|
GetUserPolicyResult |
withPolicyName(java.lang.String policyName)
The name of the policy.
|
GetUserPolicyResult |
withUserName(java.lang.String userName)
The user the policy is associated with.
|
private java.lang.String userName
The user the policy is associated with.
private java.lang.String policyName
The name of the policy.
private java.lang.String policyDocument
The policy document.
public void setUserName(java.lang.String userName)
The user the policy is associated with.
userName
- The user the policy is associated with.public java.lang.String getUserName()
The user the policy is associated with.
public GetUserPolicyResult withUserName(java.lang.String userName)
The user the policy is associated with.
userName
- The user the policy is associated with.public void setPolicyName(java.lang.String policyName)
The name of the policy.
policyName
- The name of the policy.public java.lang.String getPolicyName()
The name of the policy.
public GetUserPolicyResult withPolicyName(java.lang.String policyName)
The name of the policy.
policyName
- The name of the policy.public void setPolicyDocument(java.lang.String policyDocument)
The policy document.
policyDocument
- The policy document.public java.lang.String getPolicyDocument()
The policy document.
public GetUserPolicyResult withPolicyDocument(java.lang.String policyDocument)
The policy document.
policyDocument
- The policy document.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 GetUserPolicyResult clone()
clone
in class java.lang.Object