com.amazonaws.services.identitymanagement.model

## クラス PutUserPolicyRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.identitymanagement.model.PutUserPolicyRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class PutUserPolicyRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `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.

  関連項目:
    `AmazonIdentityManagement.putUserPolicy(PutUserPolicyRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `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.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### PutUserPolicyRequest

          public PutUserPolicyRequest()

      Default constructor for a new PutUserPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### PutUserPolicyRequest

          public PutUserPolicyRequest(java.lang.String userName,
                              java.lang.String policyName,
                              java.lang.String policyDocument)

      Constructs a new PutUserPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `userName` - Name of the user to associate the policy with.
        `policyName` - Name of the policy document.
        `policyDocument` - The policy document.

  - ### メソッドの詳細

    - #### getUserName

          public java.lang.String getUserName()

      Name of the user to associate the policy with.

      Constraints:
      Length: 1 - 128
      Pattern: [\w+=,.@-]*

      戻り値:
        Name of the user to associate the policy with.

    - #### setUserName

          public void setUserName(java.lang.String userName)

      Name of the user to associate the policy with.

      Constraints:
      Length: 1 - 128
      Pattern: [\w+=,.@-]*

      パラメータ:
        `userName` - Name of the user to associate the policy with.

    - #### withUserName

          public PutUserPolicyRequest withUserName(java.lang.String userName)

      Name of the user to associate the policy with.

      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.

    - #### getPolicyName

          public java.lang.String getPolicyName()

      Name of the policy document.

      Constraints:
      Length: 1 - 128
      Pattern: [\w+=,.@-]*

      戻り値:
        Name of the policy document.

    - #### setPolicyName

          public void setPolicyName(java.lang.String policyName)

      Name of the policy document.

      Constraints:
      Length: 1 - 128
      Pattern: [\w+=,.@-]*

      パラメータ:
        `policyName` - Name of the policy document.

    - #### withPolicyName

          public PutUserPolicyRequest withPolicyName(java.lang.String policyName)

      Name of the policy document.

      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.

    - #### getPolicyDocument

          public java.lang.String getPolicyDocument()

      The policy document.

      Constraints:
      Length: 1 - 131072
      Pattern: [ -ÿ]+

      戻り値:
        The policy document.

    - #### setPolicyDocument

          public void setPolicyDocument(java.lang.String policyDocument)

      The policy document.

      Constraints:
      Length: 1 - 131072
      Pattern: [ -ÿ]+

      パラメータ:
        `policyDocument` - The policy document.

    - #### withPolicyDocument

          public PutUserPolicyRequest withPolicyDocument(java.lang.String policyDocument)

      The policy document.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Length: 1 - 131072
      Pattern: [ -ÿ]+

      パラメータ:
        `policyDocument` - The policy document.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`