public class GetUserPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetUserPolicy operation
.
Retrieves the specified inline policy document that is embedded in the specified user.
A user can also have managed policies attached to it. To retrieve a managed policy document that is attached to a user, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
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 |
---|---|
GetUserPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyName()
The name of the policy document to get.
|
String |
getUserName()
The name of the user who the policy is associated with.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
The name of the policy document to get.
|
void |
setUserName(String userName)
The 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)
The name of the policy document to get.
|
GetUserPolicyRequest |
withUserName(String userName)
The name of the user who the policy is associated with.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public GetUserPolicyRequest()
public GetUserPolicyRequest(String userName, String policyName)
userName
- The name of the user who the policy is associated
with.policyName
- The 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
- The 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
- The 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
- The 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
- The name of the policy document to get.public String toString()
toString
in class Object
Object.toString()
public GetUserPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.