com.amazonaws.services.identitymanagement.model

## クラス AddRoleToInstanceProfileRequest

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

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

      public class AddRoleToInstanceProfileRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `AddRoleToInstanceProfile operation`.

  Adds the specified role to the specified instance profile. For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .

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

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

    コンストラクタ
    コンストラクタと説明
    `AddRoleToInstanceProfileRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getInstanceProfileName()` Name of the instance profile to update.
    `java.lang.String` | `getRoleName()` Name of the role to add.
    `int` | `hashCode()`
    `void` | `setInstanceProfileName(java.lang.String instanceProfileName)` Name of the instance profile to update.
    `void` | `setRoleName(java.lang.String roleName)` Name of the role to add.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `AddRoleToInstanceProfileRequest` | `withInstanceProfileName(java.lang.String instanceProfileName)` Name of the instance profile to update.
    `AddRoleToInstanceProfileRequest` | `withRoleName(java.lang.String roleName)` Name of the role to add.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### AddRoleToInstanceProfileRequest

          public AddRoleToInstanceProfileRequest()

  - ### メソッドの詳細

    - #### getInstanceProfileName

          public java.lang.String getInstanceProfileName()

      Name of the instance profile to update.

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

      戻り値:
        Name of the instance profile to update.

    - #### setInstanceProfileName

          public void setInstanceProfileName(java.lang.String instanceProfileName)

      Name of the instance profile to update.

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

      パラメータ:
        `instanceProfileName` - Name of the instance profile to update.

    - #### withInstanceProfileName

          public AddRoleToInstanceProfileRequest withInstanceProfileName(java.lang.String instanceProfileName)

      Name of the instance profile to update.

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

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

      パラメータ:
        `instanceProfileName` - Name of the instance profile to update.

    - #### getRoleName

          public java.lang.String getRoleName()

      Name of the role to add.

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

      戻り値:
        Name of the role to add.

    - #### setRoleName

          public void setRoleName(java.lang.String roleName)

      Name of the role to add.

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

      パラメータ:
        `roleName` - Name of the role to add.

    - #### withRoleName

          public AddRoleToInstanceProfileRequest withRoleName(java.lang.String roleName)

      Name of the role to add.

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

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

      パラメータ:
        `roleName` - Name of the role to add.

    - #### 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`