public class PutUserPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable
PutUserPolicy operation.
Adds (or updates) a policy document associated with the specified user. For information about policies, refer to Overview of Policies in Using AWS Identity and Access Management .
For information about limits on the number of policies you can associate with a user, see Limitations on IAM Entities in Using AWS Identity and Access Management .
NOTE:Because policy documents can be large, you should use POST rather than GET when calling PutUserPolicy. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in Using IAM.
| コンストラクタと説明 |
|---|
PutUserPolicyRequest()
Default constructor for a new PutUserPolicyRequest object.
|
PutUserPolicyRequest(java.lang.String userName,
java.lang.String policyName,
java.lang.String policyDocument)
Constructs a new PutUserPolicyRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyDocument()
The policy document.
|
java.lang.String |
getPolicyName()
Name of the policy document.
|
java.lang.String |
getUserName()
Name of the user to associate the policy with.
|
int |
hashCode() |
void |
setPolicyDocument(java.lang.String policyDocument)
The policy document.
|
void |
setPolicyName(java.lang.String policyName)
Name of the policy document.
|
void |
setUserName(java.lang.String userName)
Name of the user to associate the policy with.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutUserPolicyRequest |
withPolicyDocument(java.lang.String policyDocument)
The policy document.
|
PutUserPolicyRequest |
withPolicyName(java.lang.String policyName)
Name of the policy document.
|
PutUserPolicyRequest |
withUserName(java.lang.String userName)
Name of the user to associate the policy with.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic PutUserPolicyRequest()
public PutUserPolicyRequest(java.lang.String userName,
java.lang.String policyName,
java.lang.String policyDocument)
userName - Name of the user to associate the policy with.policyName - Name of the policy document.policyDocument - The policy document.public java.lang.String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setUserName(java.lang.String userName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName - Name of the user to associate the policy with.public PutUserPolicyRequest withUserName(java.lang.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 to associate the policy with.public java.lang.String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setPolicyName(java.lang.String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName - Name of the policy document.public PutUserPolicyRequest withPolicyName(java.lang.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.public java.lang.String getPolicyDocument()
Constraints:
Length: 1 - 131072
Pattern: [
-ÿ]+
public void setPolicyDocument(java.lang.String policyDocument)
Constraints:
Length: 1 - 131072
Pattern: [
-ÿ]+
policyDocument - The policy document.public PutUserPolicyRequest withPolicyDocument(java.lang.String policyDocument)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 131072
Pattern: [
-ÿ]+
policyDocument - The policy document.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object