com.amazonaws.services.ec2.model

## クラス KeyPair

- java.lang.Object
- - com.amazonaws.services.ec2.model.KeyPair

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

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

  Describes an Amazon EC2 key pair, including the private key material.

  The public key portion is stored by Amazon EC2 and the private key is returned only once, in this type, when the key is initially created.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getKeyFingerprint()` The SHA-1 digest of the DER encoded private key.
    `java.lang.String` | `getKeyMaterial()` The unencrypted PEM encoded RSA private key.
    `java.lang.String` | `getKeyName()` The name of the key pair.
    `int` | `hashCode()`
    `void` | `setKeyFingerprint(java.lang.String keyFingerprint)` The SHA-1 digest of the DER encoded private key.
    `void` | `setKeyMaterial(java.lang.String keyMaterial)` The unencrypted PEM encoded RSA private key.
    `void` | `setKeyName(java.lang.String keyName)` The name of the key pair.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `KeyPair` | `withKeyFingerprint(java.lang.String keyFingerprint)` The SHA-1 digest of the DER encoded private key.
    `KeyPair` | `withKeyMaterial(java.lang.String keyMaterial)` The unencrypted PEM encoded RSA private key.
    `KeyPair` | `withKeyName(java.lang.String keyName)` The name of the key pair.

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

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

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

    - #### KeyPair

          public KeyPair()

  - ### メソッドの詳細

    - #### getKeyName

          public java.lang.String getKeyName()

      The name of the key pair.
      戻り値:
        The name of the key pair.

    - #### setKeyName

          public void setKeyName(java.lang.String keyName)

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

    - #### withKeyName

          public KeyPair withKeyName(java.lang.String keyName)

      The name of the key pair.

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

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

    - #### getKeyFingerprint

          public java.lang.String getKeyFingerprint()

      The SHA-1 digest of the DER encoded private key.
      戻り値:
        The SHA-1 digest of the DER encoded private key.

    - #### setKeyFingerprint

          public void setKeyFingerprint(java.lang.String keyFingerprint)

      The SHA-1 digest of the DER encoded private key.
      パラメータ:
        `keyFingerprint` - The SHA-1 digest of the DER encoded private key.

    - #### withKeyFingerprint

          public KeyPair withKeyFingerprint(java.lang.String keyFingerprint)

      The SHA-1 digest of the DER encoded private key.

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

      パラメータ:
        `keyFingerprint` - The SHA-1 digest of the DER encoded private key.

    - #### getKeyMaterial

          public java.lang.String getKeyMaterial()

      The unencrypted PEM encoded RSA private key.
      戻り値:
        The unencrypted PEM encoded RSA private key.

    - #### setKeyMaterial

          public void setKeyMaterial(java.lang.String keyMaterial)

      The unencrypted PEM encoded RSA private key.
      パラメータ:
        `keyMaterial` - The unencrypted PEM encoded RSA private key.

    - #### withKeyMaterial

          public KeyPair withKeyMaterial(java.lang.String keyMaterial)

      The unencrypted PEM encoded RSA private key.

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

      パラメータ:
        `keyMaterial` - The unencrypted PEM encoded RSA private key.

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