@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetUserPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the response to a successful GetUserPolicy request.
Constructor and Description |
---|
GetUserPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetUserPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyDocument()
The policy document.
|
String |
getPolicyName()
The name of the policy.
|
String |
getUserName()
The user the policy is associated with.
|
int |
hashCode() |
void |
setPolicyDocument(String policyDocument)
The policy document.
|
void |
setPolicyName(String policyName)
The name of the policy.
|
void |
setUserName(String userName)
The user the policy is associated with.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetUserPolicyResult |
withPolicyDocument(String policyDocument)
The policy document.
|
GetUserPolicyResult |
withPolicyName(String policyName)
The name of the policy.
|
GetUserPolicyResult |
withUserName(String userName)
The user the policy is associated with.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setUserName(String userName)
The user the policy is associated with.
userName
- The user the policy is associated with.public String getUserName()
The user the policy is associated with.
public GetUserPolicyResult withUserName(String userName)
The user the policy is associated with.
userName
- The user the policy is associated with.public void setPolicyName(String policyName)
The name of the policy.
policyName
- The name of the policy.public String getPolicyName()
The name of the policy.
public GetUserPolicyResult withPolicyName(String policyName)
The name of the policy.
policyName
- The name of the policy.public void setPolicyDocument(String policyDocument)
The policy document.
policyDocument
- The policy document.public String getPolicyDocument()
The policy document.
public GetUserPolicyResult withPolicyDocument(String policyDocument)
The policy document.
policyDocument
- The policy document.public String toString()
toString
in class Object
Object.toString()
public GetUserPolicyResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.