public class GetUserPolicyRequest extends AmazonWebServiceRequest implements Serializable
GetUserPolicy operation
.
Retrieves the specified policy document for the specified user. The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html .
NOOP
Constructor and Description |
---|
GetUserPolicyRequest()
Default constructor for a new GetUserPolicyRequest object.
|
GetUserPolicyRequest(String userName,
String policyName)
Constructs a new GetUserPolicyRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPolicyName()
Name of the policy document to get.
|
String |
getUserName()
Name of the user who the policy is associated with.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
Name of the policy document to get.
|
void |
setUserName(String userName)
Name of the user who the policy is associated with.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetUserPolicyRequest |
withPolicyName(String policyName)
Name of the policy document to get.
|
GetUserPolicyRequest |
withUserName(String userName)
Name of the user who the policy is associated with.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public GetUserPolicyRequest()
public GetUserPolicyRequest(String userName, String policyName)
userName
- Name of the user who the policy is associated with.policyName
- Name of the policy document to get.public String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setUserName(String userName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName
- Name of the user who the policy is associated with.public GetUserPolicyRequest withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName
- Name of the user who the policy is associated with.public String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName
- Name of the policy document to get.public GetUserPolicyRequest withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName
- Name of the policy document to get.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.