com.amazonaws.services.ec2.model

## クラス ImportKeyPairRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.ImportKeyPairRequest

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

      public class ImportKeyPairRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `ImportKeyPair operation`.

  Imports the public key from an RSA key pair created with a third-party tool. This operation differs from CreateKeyPair as the private key is never transferred between the caller and AWS servers.

  RSA key pairs are easily created on Microsoft Windows and Linux OS systems using the `ssh-keygen` command line tool provided with the standard OpenSSH installation. Standard library support for RSA key pair creation is also available for Java, Ruby, Python, and many other programming languages.

  The following formats are supported:

  - OpenSSH public key format,
  - Base64 encoded DER format.
  - SSH public key file format as specified in RFC4716 .
  関連項目:
    `AmazonEC2.importKeyPair(ImportKeyPairRequest)`, 直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `ImportKeyPairRequest()` Default constructor for a new ImportKeyPairRequest object.
    `ImportKeyPairRequest(java.lang.String keyName, java.lang.String publicKeyMaterial)` Constructs a new ImportKeyPairRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getKeyName()` The unique name for the key pair.
    `java.lang.String` | `getPublicKeyMaterial()` The public key portion of the key pair being imported.
    `int` | `hashCode()`
    `void` | `setKeyName(java.lang.String keyName)` The unique name for the key pair.
    `void` | `setPublicKeyMaterial(java.lang.String publicKeyMaterial)` The public key portion of the key pair being imported.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `ImportKeyPairRequest` | `withKeyName(java.lang.String keyName)` The unique name for the key pair.
    `ImportKeyPairRequest` | `withPublicKeyMaterial(java.lang.String publicKeyMaterial)` The public key portion of the key pair being imported.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### ImportKeyPairRequest

          public ImportKeyPairRequest()

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

    - #### ImportKeyPairRequest

          public ImportKeyPairRequest(java.lang.String keyName,
                              java.lang.String publicKeyMaterial)

      Constructs a new ImportKeyPairRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `keyName` - The unique name for the key pair.
        `publicKeyMaterial` - The public key portion of the key pair being imported.

  - ### メソッドの詳細

    - #### getKeyName

          public java.lang.String getKeyName()

      The unique name for the key pair.
      戻り値:
        The unique name for the key pair.

    - #### setKeyName

          public void setKeyName(java.lang.String keyName)

      The unique name for the key pair.
      パラメータ:
        `keyName` - The unique name for the key pair.

    - #### withKeyName

          public ImportKeyPairRequest withKeyName(java.lang.String keyName)

      The unique name for the key pair.

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

      パラメータ:
        `keyName` - The unique name for the key pair.

    - #### getPublicKeyMaterial

          public java.lang.String getPublicKeyMaterial()

      The public key portion of the key pair being imported.
      戻り値:
        The public key portion of the key pair being imported.

    - #### setPublicKeyMaterial

          public void setPublicKeyMaterial(java.lang.String publicKeyMaterial)

      The public key portion of the key pair being imported.
      パラメータ:
        `publicKeyMaterial` - The public key portion of the key pair being imported.

    - #### withPublicKeyMaterial

          public ImportKeyPairRequest withPublicKeyMaterial(java.lang.String publicKeyMaterial)

      The public key portion of the key pair being imported.

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

      パラメータ:
        `publicKeyMaterial` - The public key portion of the key pair being imported.

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