com.amazonaws.services.identitymanagement.model

## クラス CreateRoleRequest

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

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

      public class CreateRoleRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateRole operation`.

  Creates a new role for your AWS account. For more information about roles, go to Working with Roles . For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities in Using AWS Identity and Access Management .

  The policy grants permission to an EC2 instance to assume the role. The policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html . Currently, only EC2 instances can assume roles.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAssumeRolePolicyDocument()` The policy that grants an entity permission to assume the role.
    `java.lang.String` | `getPath()` The path to the role.
    `java.lang.String` | `getRoleName()` Name of the role to create.
    `int` | `hashCode()`
    `void` | `setAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)` The policy that grants an entity permission to assume the role.
    `void` | `setPath(java.lang.String path)` The path to the role.
    `void` | `setRoleName(java.lang.String roleName)` Name of the role to create.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateRoleRequest` | `withAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)` The policy that grants an entity permission to assume the role.
    `CreateRoleRequest` | `withPath(java.lang.String path)` The path to the role.
    `CreateRoleRequest` | `withRoleName(java.lang.String roleName)` Name of the role to create.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateRoleRequest

          public CreateRoleRequest()

  - ### メソッドの詳細

    - #### getPath

          public java.lang.String getPath()

      The path to the role. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

      This parameter is optional. If it is not included, it defaults to a slash (/).

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

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

        This parameter is optional. If it is not included, it defaults to a slash (/).

    - #### setPath

          public void setPath(java.lang.String path)

      The path to the role. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

      This parameter is optional. If it is not included, it defaults to a slash (/).

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

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

        This parameter is optional. If it is not included, it defaults to a slash (/).

    - #### withPath

          public CreateRoleRequest withPath(java.lang.String path)

      The path to the role. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

      This parameter is optional. If it is not included, it defaults to a slash (/).

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

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

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

        This parameter is optional. If it is not included, it defaults to a slash (/).

    - #### getRoleName

          public java.lang.String getRoleName()

      Name of the role to create.

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

      戻り値:
        Name of the role to create.

    - #### setRoleName

          public void setRoleName(java.lang.String roleName)

      Name of the role to create.

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

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

    - #### withRoleName

          public CreateRoleRequest withRoleName(java.lang.String roleName)

      Name of the role to create.

      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 create.

    - #### getAssumeRolePolicyDocument

          public java.lang.String getAssumeRolePolicyDocument()

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

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

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

    - #### setAssumeRolePolicyDocument

          public void setAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)

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

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

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

    - #### withAssumeRolePolicyDocument

          public CreateRoleRequest withAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)

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

      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.

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