|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ImportKeyPairRequest
public class ImportKeyPairRequest
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:
AmazonEC2.importKeyPair(ImportKeyPairRequest)
Constructor Summary | |
---|---|
ImportKeyPairRequest()
Default constructor for a new ImportKeyPairRequest object. |
|
ImportKeyPairRequest(String keyName,
String publicKeyMaterial)
Constructs a new ImportKeyPairRequest object. |
Method Summary | |
---|---|
String |
getKeyName()
The unique name for the key pair. |
String |
getPublicKeyMaterial()
The public key portion of the key pair being imported. |
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |