public class ImportKeyPairRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ImportKeyPairRequest>
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:
Constructor and Description |
---|
ImportKeyPairRequest()
Default constructor for a new ImportKeyPairRequest object.
|
ImportKeyPairRequest(String keyName,
String publicKeyMaterial)
Constructs a new ImportKeyPairRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<ImportKeyPairRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getKeyName()
The unique name for the key pair.
|
String |
getPublicKeyMaterial()
The public key portion of the key pair being imported.
|
int |
hashCode() |
void |
setKeyName(String keyName)
The unique name for the key pair.
|
void |
setPublicKeyMaterial(String publicKeyMaterial)
The public key portion of the key pair being imported.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportKeyPairRequest |
withKeyName(String keyName)
The unique name for the key pair.
|
ImportKeyPairRequest |
withPublicKeyMaterial(String publicKeyMaterial)
The public key portion of the key pair being imported.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public ImportKeyPairRequest()
public ImportKeyPairRequest(String keyName, String publicKeyMaterial)
keyName
- The unique name for the key pair.publicKeyMaterial
- The public key portion of the key pair being
imported.public String getKeyName()
public void setKeyName(String keyName)
keyName
- The unique name for the key pair.public ImportKeyPairRequest withKeyName(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 String getPublicKeyMaterial()
public void setPublicKeyMaterial(String publicKeyMaterial)
publicKeyMaterial
- The public key portion of the key pair being imported.public ImportKeyPairRequest withPublicKeyMaterial(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 Request<ImportKeyPairRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ImportKeyPairRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.