com.amazonaws.services.identitymanagement.model

## クラス InstanceProfile

- java.lang.Object
- - com.amazonaws.services.identitymanagement.model.InstanceProfile

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

      public class InstanceProfile
      extends java.lang.Object
      implements java.io.Serializable

  The InstanceProfile data type contains information about an instance profile.

  This data type is used as a response element in the following actions:

  - CreateInstanceProfile

  - GetInstanceProfile

  - ListInstanceProfiles

  - ListInstanceProfilesForRole

  関連項目:
    直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getArn()` The Amazon Resource Name (ARN) specifying the instance profile.
    `java.util.Date` | `getCreateDate()` The date when the instance profile was created.
    `java.lang.String` | `getInstanceProfileId()` The stable and unique string identifying the instance profile.
    `java.lang.String` | `getInstanceProfileName()` The name identifying the instance profile.
    `java.lang.String` | `getPath()` Path to the instance profile.
    `java.util.List<Role>` | `getRoles()` The role associated with the instance profile.
    `int` | `hashCode()`
    `void` | `setArn(java.lang.String arn)` The Amazon Resource Name (ARN) specifying the instance profile.
    `void` | `setCreateDate(java.util.Date createDate)` The date when the instance profile was created.
    `void` | `setInstanceProfileId(java.lang.String instanceProfileId)` The stable and unique string identifying the instance profile.
    `void` | `setInstanceProfileName(java.lang.String instanceProfileName)` The name identifying the instance profile.
    `void` | `setPath(java.lang.String path)` Path to the instance profile.
    `void` | `setRoles(java.util.Collection<Role> roles)` The role associated with the instance profile.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `InstanceProfile` | `withArn(java.lang.String arn)` The Amazon Resource Name (ARN) specifying the instance profile.
    `InstanceProfile` | `withCreateDate(java.util.Date createDate)` The date when the instance profile was created.
    `InstanceProfile` | `withInstanceProfileId(java.lang.String instanceProfileId)` The stable and unique string identifying the instance profile.
    `InstanceProfile` | `withInstanceProfileName(java.lang.String instanceProfileName)` The name identifying the instance profile.
    `InstanceProfile` | `withPath(java.lang.String path)` Path to the instance profile.
    `InstanceProfile` | `withRoles(java.util.Collection<Role> roles)` The role associated with the instance profile.
    `InstanceProfile` | `withRoles(Role... roles)` The role associated with the instance profile.

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

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

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

    - #### InstanceProfile

          public InstanceProfile()

  - ### メソッドの詳細

    - #### getPath

          public java.lang.String getPath()

      Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

      Constraints:
      Length: 1 - 512
      Pattern: (/)|(/[!-]+/)

      戻り値:
        Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### setPath

          public void setPath(java.lang.String path)

      Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

      Constraints:
      Length: 1 - 512
      Pattern: (/)|(/[!-]+/)

      パラメータ:
        `path` - Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### withPath

          public InstanceProfile withPath(java.lang.String path)

      Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

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

      Constraints:
      Length: 1 - 512
      Pattern: (/)|(/[!-]+/)

      パラメータ:
        `path` - Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### getInstanceProfileName

          public java.lang.String getInstanceProfileName()

      The name identifying the instance profile.

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

      戻り値:
        The name identifying the instance profile.

    - #### setInstanceProfileName

          public void setInstanceProfileName(java.lang.String instanceProfileName)

      The name identifying the instance profile.

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

      パラメータ:
        `instanceProfileName` - The name identifying the instance profile.

    - #### withInstanceProfileName

          public InstanceProfile withInstanceProfileName(java.lang.String instanceProfileName)

      The name identifying the instance profile.

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

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

      パラメータ:
        `instanceProfileName` - The name identifying the instance profile.

    - #### getInstanceProfileId

          public java.lang.String getInstanceProfileId()

      The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

      Constraints:
      Length: 16 - 32
      Pattern: [\w]*

      戻り値:
        The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### setInstanceProfileId

          public void setInstanceProfileId(java.lang.String instanceProfileId)

      The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

      Constraints:
      Length: 16 - 32
      Pattern: [\w]*

      パラメータ:
        `instanceProfileId` - The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### withInstanceProfileId

          public InstanceProfile withInstanceProfileId(java.lang.String instanceProfileId)

      The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

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

      Constraints:
      Length: 16 - 32
      Pattern: [\w]*

      パラメータ:
        `instanceProfileId` - The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### getArn

          public java.lang.String getArn()

      The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

      Constraints:
      Length: 20 - 2048

      戻り値:
        The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### setArn

          public void setArn(java.lang.String arn)

      The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

      Constraints:
      Length: 20 - 2048

      パラメータ:
        `arn` - The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### withArn

          public InstanceProfile withArn(java.lang.String arn)

      The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

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

      Constraints:
      Length: 20 - 2048

      パラメータ:
        `arn` - The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### getCreateDate

          public java.util.Date getCreateDate()

      The date when the instance profile was created.
      戻り値:
        The date when the instance profile was created.

    - #### setCreateDate

          public void setCreateDate(java.util.Date createDate)

      The date when the instance profile was created.
      パラメータ:
        `createDate` - The date when the instance profile was created.

    - #### withCreateDate

          public InstanceProfile withCreateDate(java.util.Date createDate)

      The date when the instance profile was created.

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

      パラメータ:
        `createDate` - The date when the instance profile was created.

    - #### getRoles

          public java.util.List<Role> getRoles()

      The role associated with the instance profile.
      戻り値:
        The role associated with the instance profile.

    - #### setRoles

          public void setRoles(java.util.Collection<Role> roles)

      The role associated with the instance profile.
      パラメータ:
        `roles` - The role associated with the instance profile.

    - #### withRoles

          public InstanceProfile withRoles(Role... roles)

      The role associated with the instance profile.

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

      パラメータ:
        `roles` - The role associated with the instance profile.

    - #### withRoles

          public InstanceProfile withRoles(java.util.Collection<Role> roles)

      The role associated with the instance profile.

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

      パラメータ:
        `roles` - The role associated with the instance profile.

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