public class ImportKeyPairRequest extends AmazonWebServiceRequest implements java.io.Serializable
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:
| コンストラクタと説明 |
|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic ImportKeyPairRequest()
public ImportKeyPairRequest(java.lang.String keyName,
java.lang.String publicKeyMaterial)
keyName - The unique name for the key pair.publicKeyMaterial - The public key portion of the key pair being
imported.public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName - The unique name for the key pair.public ImportKeyPairRequest withKeyName(java.lang.String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName - The unique name for the key pair.public java.lang.String getPublicKeyMaterial()
public void setPublicKeyMaterial(java.lang.String publicKeyMaterial)
publicKeyMaterial - The public key portion of the key pair being imported.public ImportKeyPairRequest withPublicKeyMaterial(java.lang.String publicKeyMaterial)
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.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object