com.amazonaws.services.identitymanagement.model

## クラス Role

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

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

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

  The Role data type contains information about a role.

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

  - CreateRole

  - GetRole

  - ListRoles

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getArn()` The Amazon Resource Name (ARN) specifying the role.
    `java.lang.String` | `getAssumeRolePolicyDocument()` The policy that grants an entity permission to assume the role.
    `java.util.Date` | `getCreateDate()` The date when the role was created.
    `java.lang.String` | `getPath()` Path to the role.
    `java.lang.String` | `getRoleId()` The stable and unique string identifying the role.
    `java.lang.String` | `getRoleName()` The name identifying the role.
    `int` | `hashCode()`
    `void` | `setArn(java.lang.String arn)` The Amazon Resource Name (ARN) specifying the role.
    `void` | `setAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)` The policy that grants an entity permission to assume the role.
    `void` | `setCreateDate(java.util.Date createDate)` The date when the role was created.
    `void` | `setPath(java.lang.String path)` Path to the role.
    `void` | `setRoleId(java.lang.String roleId)` The stable and unique string identifying the role.
    `void` | `setRoleName(java.lang.String roleName)` The name identifying the role.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Role` | `withArn(java.lang.String arn)` The Amazon Resource Name (ARN) specifying the role.
    `Role` | `withAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)` The policy that grants an entity permission to assume the role.
    `Role` | `withCreateDate(java.util.Date createDate)` The date when the role was created.
    `Role` | `withPath(java.lang.String path)` Path to the role.
    `Role` | `withRoleId(java.lang.String roleId)` The stable and unique string identifying the role.
    `Role` | `withRoleName(java.lang.String roleName)` The name identifying the role.

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

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

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

    - #### Role

          public Role()

  - ### メソッドの詳細

    - #### getPath

          public java.lang.String getPath()

      Path to the role. 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 role. 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 role. 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 role. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### withPath

          public Role withPath(java.lang.String path)

      Path to the role. 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 role. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### getRoleName

          public java.lang.String getRoleName()

      The name identifying the role.

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

      戻り値:
        The name identifying the role.

    - #### setRoleName

          public void setRoleName(java.lang.String roleName)

      The name identifying the role.

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

      パラメータ:
        `roleName` - The name identifying the role.

    - #### withRoleName

          public Role withRoleName(java.lang.String roleName)

      The name identifying the role.

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

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

      パラメータ:
        `roleName` - The name identifying the role.

    - #### getRoleId

          public java.lang.String getRoleId()

      The stable and unique string identifying the role. 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 role. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

    - #### setRoleId

          public void setRoleId(java.lang.String roleId)

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

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

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

    - #### withRoleId

          public Role withRoleId(java.lang.String roleId)

      The stable and unique string identifying the role. 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]*

      パラメータ:
        `roleId` - The stable and unique string identifying the role. 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 role. 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 role. 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 role. 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 role. 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 Role withArn(java.lang.String arn)

      The Amazon Resource Name (ARN) specifying the role. 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 role. 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 role was created.
      戻り値:
        The date when the role was created.

    - #### setCreateDate

          public void setCreateDate(java.util.Date createDate)

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

    - #### withCreateDate

          public Role withCreateDate(java.util.Date createDate)

      The date when the role was created.

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

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

    - #### getAssumeRolePolicyDocument

          public java.lang.String getAssumeRolePolicyDocument()

      The policy that grants an entity permission to assume the role.

      The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html.

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

      戻り値:
        The policy that grants an entity permission to assume the role.

        The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html.

    - #### setAssumeRolePolicyDocument

          public void setAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)

      The policy that grants an entity permission to assume the role.

      The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html.

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

      パラメータ:
        `assumeRolePolicyDocument` - The policy that grants an entity permission to assume the role.

        The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html.

    - #### withAssumeRolePolicyDocument

          public Role withAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)

      The policy that grants an entity permission to assume the role.

      The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html.

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

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

      パラメータ:
        `assumeRolePolicyDocument` - The policy that grants an entity permission to assume the role.

        The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html.

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